Skip to content

Commit

Permalink
emulation: Swallow OSC 8
Browse files Browse the repository at this point in the history
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
  • Loading branch information
egmontkob committed Apr 6, 2017
1 parent f7e3c8a commit cd8c8b3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/caps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
1 change: 1 addition & 0 deletions src/vteseq-n.gperf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
6 changes: 6 additions & 0 deletions src/vteseq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cd8c8b3

Please sign in to comment.