aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/config.vala
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-28 15:10:55 +0100
committerWynn Wolf Arbor2020-04-13 15:45:26 +0200
commit30bbf529ad3073fd449c7f9331a889b114fad1e1 (patch)
treede43218ab0a4e4fc12816251144b55010e8c01a4 /config.vala
parentbed4cae59bfd5ac100caa3a4ac795f33598b6ab0 (diff)
downloadweltschmerz-30bbf529ad3073fd449c7f9331a889b114fad1e1.tar.gz
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
Diffstat (limited to 'config.vala')
-rw-r--r--config.vala2
1 files changed, 2 insertions, 0 deletions
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);