Disable hyperlinks in gnome-terminal

Unfortunately gnome-terminal offers no configuration option to disable these. You might want to recompile it, removing the entries from url_regex_patterns in src/terminal-screen.c.

This hyperlink feature doesn't influence the normal text selection by mouse, you can still click and select the text. Clicking on a hyperlink to bring the window forward shouldn't have any undesired side effect. (The feature influences the rarely used rectangular selection (Ctrl+Click becomes "open link" instead), and populates the right-click menu with extra entries.)

Of course, I understand that underlining the text and changing the mouse pointer shape on hover is visually unpleasant when you have many false matches, but I don't see how it causes an actual behavioral problem.


Update:

gnome-terminal version 3.18.3 reimplements the matcher regular expressions from scratch, in a way that leads to much fewer false positives than in preceding versions. E.g. "[email protected]" is no longer treated as a valid e-mail address.


Actually, It works as you need in Ubuntu 14.04 (gnome-terminal 3.6) and in Ubuntu 15.04 (gnome-terminal 3.14)

Links activated only with:

  • a Left Click while holding Ctrl
  • or using Right Click → Open Link.

Double Click makes selection.