[vte/vte-0-48] emulation: Swallow OSC 8



commit 3fe05ffc05ce6516b1f0cbbbef0de968e18404b0
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Apr 7 01:51:14 2017 +0200

    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
    (cherry picked from commit cd8c8b30241b0d357bcdf72256102d0afcc350b6)

 src/caps.cc        |    2 ++
 src/vteseq-n.gperf |    1 +
 src/vteseq.cc      |    6 ++++++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/caps.cc b/src/caps.cc
index 4757126..3c3fd65 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 573f045..3e60835 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 25e697b..a8e66fe 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -2449,6 +2449,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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]