https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87488
Bug ID: 87488 Summary: hyperlink filenames in diagnostics Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: manu at gcc dot gnu.org Target Milestone: --- Modern terminals are starting to implement the interpretation of hyperlinks encoded in escape sequences (https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). The idea is to produce a escape sequence similar to the one generated for colors that encodes a hyperlink that, in the simplest case, describes the path to a file. Support for hyperlinks has been added to ls: https://github.com/coreutils/coreutils/commit/799bac0d06cfabe9491498727308df8d1aca6d98 and to systemd: https://github.com/systemd/systemd/commit/23b27b39d2a3a002ad827a2e8a9872a51495d797 It would be interesting if GCC hyperlinked filenames in GCC diagnostics such that given: myfile.c:1:2: error: some error it is possible to click in myfile.c and automatically open "file://path/to/myfile.c" I suggest -fdiagnostics-hyperlink=[always|never|auto] with a default of never for now until support becomes more widespread.