From 30bbf529ad3073fd449c7f9331a889b114fad1e1 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Sat, 28 Mar 2020 15:10:55 +0100 Subject: Add OSC 8 hyperlink support This commit adds support for the OSC 8 hyperlink escape sequence [1]. As this is not a mature feature and there seem to be outstanding security concerns [2], the setting that controls whether or not OSC 8 is interpreted is disabled by default. Just like gnome-terminal, weltschmerz will display a tooltip with the canonicalized URI when hovering over a hyperlink. [1] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda [2] https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda#security --- config.vala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.vala') diff --git a/config.vala b/config.vala index 991d015..be3f353 100644 --- a/config.vala +++ b/config.vala @@ -5,6 +5,7 @@ class Config { public Pango.FontDescription font; public int scrollback; public bool scrollbar; + public bool allow_hyperlinks; public Gdk.RGBA? foreground; public Gdk.RGBA? background; @@ -46,6 +47,7 @@ class Config { font = Pango.FontDescription.from_string(reader.read_string("misc", "font", "Monospace 12")); scrollback = reader.read_integer("misc", "scrollback", 10000); scrollbar = reader.read_boolean("misc", "scrollbar", true); + allow_hyperlinks = reader.read_boolean("misc", "allow-hyperlinks", false); foreground = reader.read_colour("colours", "foreground", null); background = reader.read_colour("colours", "background", null); -- cgit v1.2.3-2-gb3c3