summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-01-31 23:10:29 +0100
committerChristian Persch <chpe@src.gnome.org>2021-01-31 23:10:29 +0100
commit558edad923ab104ec5240dbccbd7442c97621c3e (patch)
tree4fd08d3a51aa69163b7dc01a8e6978b43e63e83c
parentb9f06ab451a00c6fc082d3cb17f8c4b1f98d3d66 (diff)
downloadvte-558edad923ab104ec5240dbccbd7442c97621c3e.tar.gz
parser: Add new sequence from xterm 362
-rwxr-xr-xsrc/parser-seq.py2
-rw-r--r--src/vteseq.cc28
2 files changed, 30 insertions, 0 deletions
diff --git a/src/parser-seq.py b/src/parser-seq.py
index ecc4c33d..9f33781d 100755
--- a/src/parser-seq.py
+++ b/src/parser-seq.py
@@ -755,6 +755,8 @@ sequences = [
comment='select printer type'),
seq_CSI('DECSFC', 's', intermediates=(Intermediate.MULT,), flags=Flags.NOP,
comment='select flow control'),
+ seq_CSI('XTERM_SHIFTESCAPE', 's', pintro=(ParameterIntro.GT,),
+ comment='xterm set shift-escape'),
seq_CSI('XTERM_SPM', 's', pintro=(ParameterIntro.WHAT,),
comment='xterm save private mode'),
seq_CSI('DECSLPP', 't',
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 08aad35a..766a03e8 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -8820,6 +8820,34 @@ Terminal::XTERM_RTM(vte::parser::Sequence const& seq)
}
void
+Terminal::XTERM_SHIFTESCAPE(vte::parser::Sequence const& seq)
+{
+ /*
+ * XTERM_SHIFTESCAPE - xterm set/reset shift escape
+ * Selects whether the SHIFT key acts as a modifier in the mouse
+ * protocol, or overrides the mouse protocol.
+ *
+ * Arguments:
+ * args[0]:
+ * 0: overrides mouse protocol
+ * 1: conditionally acts as modifier
+ * 2: always acts as modifier
+ * 3: never acts as modifier
+ *
+ * Defaults:
+ * args[0]: 0
+ *
+ * Note that args[0] values 2 and 3 are not actually executed
+ * from an escape sequence, they correspond to the value of the
+ * xterm resource controlling this setting.
+ *
+ * References: XTERM 362
+ */
+ /* Not worth implementing this */
+}
+
+
+void
Terminal::XTERM_SMGRAPHICS(vte::parser::Sequence const& seq)
{
/*