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 --- weltschmerz.1 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'weltschmerz.1') diff --git a/weltschmerz.1 b/weltschmerz.1 index f754253..f2481c8 100644 --- a/weltschmerz.1 +++ b/weltschmerz.1 @@ -1,4 +1,4 @@ -.Dd January 17, 2020 +.Dd March 28, 2020 .Dt WELTSCHMERZ 1 .Os .Sh NAME @@ -13,8 +13,8 @@ .Sh DESCRIPTION .Nm is a terminal emulator using the VTE widget. -It supports clickable URLs, contains basic search functionality, and can -reload its configuration whilst running. +It supports clickable URLs and hyperlinks, contains basic search functionality, +and can reload its configuration whilst running. .Pp .Nm executes the given command, or the program specified in the @@ -82,6 +82,16 @@ The options for the .Em misc group are as follows: .Bl -tag -width Ds +.It Sy allow-hyperlinks +When set to +.Sy true , +.Nm +will highlight and process OSC 8 hyperlinks. +When set to +.Sy false , +hyperlink support will be disabled completely. +The default is +.Sy false . .It Sy autohide-mouse When set to .Sy true , -- cgit v1.2.3-2-gb3c3