[vte] parser: Add new sequence from xterm 362



commit 558edad923ab104ec5240dbccbd7442c97621c3e
Author: Christian Persch <chpe src gnome org>
Date:   Sun Jan 31 23:10:29 2021 +0100

    parser: Add new sequence from xterm 362

 src/parser-seq.py |  2 ++
 src/vteseq.cc     | 28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
---
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
@@ -8819,6 +8819,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)
 {


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