summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2017-04-07 01:51:14 +0200
committerEgmont Koblinger <egmont@gmail.com>2017-04-07 01:52:53 +0200
commitcd8c8b30241b0d357bcdf72256102d0afcc350b6 (patch)
tree45a6a97bc136397f7c95d32b37c2d61c4f719a2e
parentf7e3c8ad342c4965d433bf3b05f418b9e984aa1f (diff)
downloadvte-cd8c8b30241b0d357bcdf72256102d0afcc350b6.tar.gz
emulation: Swallow OSC 8
Accept OSC 8 but make it a no-op, in preparation for the forthcoming hyperlink feature. https://bugzilla.gnome.org/show_bug.cgi?id=779734
-rw-r--r--src/caps.cc2
-rw-r--r--src/vteseq-n.gperf1
-rw-r--r--src/vteseq.cc6
3 files changed, 9 insertions, 0 deletions
diff --git a/src/caps.cc b/src/caps.cc
index 47571269..3c3fd659 100644
--- a/src/caps.cc
+++ b/src/caps.cc
@@ -229,6 +229,7 @@ const char _vte_xterm_capability_strings[] =
ENTRY(OSC "4;%s" BEL, "change-color-bel")
ENTRY(OSC "6;%s" BEL, "set-current-file-uri")
ENTRY(OSC "7;%s" BEL, "set-current-directory-uri")
+ ENTRY(OSC "8;%s;%s" BEL, "set-current-hyperlink")
ENTRY(OSC "10;%s" BEL, "change-foreground-color-bel")
ENTRY(OSC "11;%s" BEL, "change-background-color-bel")
ENTRY(OSC "12;%s" BEL, "change-cursor-background-color-bel")
@@ -266,6 +267,7 @@ const char _vte_xterm_capability_strings[] =
ENTRY(OSC "4;%s" ST, "change-color-st")
ENTRY(OSC "6;%s" ST, "set-current-file-uri")
ENTRY(OSC "7;%s" ST, "set-current-directory-uri")
+ ENTRY(OSC "8;%s;%s" ST, "set-current-hyperlink")
ENTRY(OSC "10;%s" ST, "change-foreground-color-st")
ENTRY(OSC "11;%s" ST, "change-background-color-st")
ENTRY(OSC "12;%s" ST, "change-cursor-background-color-st")
diff --git a/src/vteseq-n.gperf b/src/vteseq-n.gperf
index 573f0451..3e608351 100644
--- a/src/vteseq-n.gperf
+++ b/src/vteseq-n.gperf
@@ -169,5 +169,6 @@ struct vteseq_n_struct {
#"reset-mouse-cursor-foreground-color", VTE_SEQUENCE_HANDLER_NULL
"set-current-directory-uri", VTE_SEQUENCE_HANDLER(vte_sequence_handler_set_current_directory_uri)
"set-current-file-uri", VTE_SEQUENCE_HANDLER(vte_sequence_handler_set_current_file_uri)
+"set-current-hyperlink", VTE_SEQUENCE_HANDLER(vte_sequence_handler_set_current_hyperlink)
"urxvt-777", VTE_SEQUENCE_HANDLER(vte_sequence_handler_urxvt_777)
"iterm2-1337", VTE_SEQUENCE_HANDLER(vte_sequence_handler_iterm2_1337)
diff --git a/src/vteseq.cc b/src/vteseq.cc
index c91beeb1..c142fd6e 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -2450,6 +2450,12 @@ VteTerminalPrivate::set_current_file_uri_changed(char* uri /* adopted */)
m_current_file_uri_changed = uri;
}
+static void
+vte_sequence_handler_set_current_hyperlink (VteTerminalPrivate *that, GValueArray *params)
+{
+ /* Accept but ignore to prepare for the forthcoming hyperlink feature (bug #779734) */
+}
+
/* Restrict the scrolling region. */
static void
vte_sequence_handler_set_scrolling_region_from_start (VteTerminalPrivate *that, GValueArray *params)