[vte/vte-0-66] parser: Fix some control codes



commit 6a0a9fed4d54122df31c13d601b1509597a36f2b
Author: Christian Persch <chpe src gnome org>
Date:   Sat Nov 27 19:45:07 2021 +0100

    parser: Fix some control codes
    
    NAK and WM had the wrong codes assigned. Since both are NOPs, this
    wasn't allowing incorrrect behaviour, but needs to be corrected still.
    
    (cherry picked from commit ffefea92b97afd334b2f09df7a2ef040598de1c8)

 src/parser-seq.py | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/src/parser-seq.py b/src/parser-seq.py
index 167080dc..8695bbd6 100755
--- a/src/parser-seq.py
+++ b/src/parser-seq.py
@@ -304,14 +304,20 @@ sequences = [
                 comment='device control 3 / XOFF'),
     seq_CONTROL('DC4', 0x14, flags=Flags.NOP, source=Source.ECMA16,
                 comment='device control 4'),
+    seq_CONTROL('NAK', 0x15, flags=Flags.NOP, source=Source.ECMA16,
+                comment='negative acknowledge'),
     seq_CONTROL('SYN', 0x16, flags=Flags.NOP, source=Source.ECMA16,
                 comment='synchronise'),
     seq_CONTROL('ETB', 0x17, flags=Flags.NOP, source=Source.ECMA16,
                 comment='end of transmissionblock'),
+    # seq_CONTROL('CAN', 0x18, flags=Flags.NOP, source=Source.ECMA16,
+    #             comment='cancel'),
     seq_CONTROL('EM', 0x19, flags=Flags.NOP, source=Source.ECMA16,
                 comment='end of medium'),
     seq_CONTROL('SUB', 0x1a, source=Source.ECMA16,
                 comment='substitute'),
+    # seq_CONTROL('ESC', 0x1b, source=Source.ECMA16,
+    #             comment='escape'),
     seq_CONTROL('IS4', 0x1c, flags=Flags.NOP, source=Source.ECMA16,
                 comment='information separator 4 / file separator (FS)'),
     seq_CONTROL('IS3', 0x1d, flags=Flags.NOP, source=Source.ECMA16,
@@ -348,6 +354,8 @@ sequences = [
                 comment='single shift 2'),
     seq_CONTROL('SS3', 0x8f, source=Source.ECMA35,
                 comment='single shift 3'),
+    # seq_CONTROL('DCS', 0x90, flags=Flags.NOP, source=Sources.ECMA35,
+    #             comment='device control string'),
     seq_CONTROL('PU1', 0x91, flags=Flags.NOP,
                 comment='private use 1'),
     seq_CONTROL('PU2', 0x92, flags=Flags.NOP,
@@ -356,14 +364,26 @@ sequences = [
                 comment='set transmit state'),
     seq_CONTROL('CCH', 0x94, flags=Flags.NOP,
                 comment='cancel character'),
-    seq_CONTROL('NAK', 0x95, flags=Flags.NOP,
-                comment='negative acknowledge'),
+    seq_CONTROL('MW', 0x95, flags=Flags.NOP,
+                comment='message waiting'),
     seq_CONTROL('SPA', 0x96, flags=Flags.NOP,
                 comment='start of protected area'),
     seq_CONTROL('EPA', 0x97, flags=Flags.NOP,
                 comment='end of protected area'),
+    # seq_CONTROL('SOS', 0x98, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='start of string'),
+    # seq_CONTROL('SOS', 0x9a, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='single character introducer'),
+    # seq_CONTROL('CSI', 0x9b, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='control sequence introducer'),
     seq_CONTROL('ST', 0x9c, flags=Flags.NOP,
                 comment='string terminator'),
+    # seq_CONTROL('OSC', 0x9d, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='operating system command'),
+    # seq_CONTROL('PM', 0x9e, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='privay message'),
+    # seq_CONTROL('APC', 0x9f, flags=Flags.NOP, source=Source.ECMA35,
+    #             comment='application program command'),
 
     # Escape sequences
     seq_ESCAPE('DECDHL_TH', '3', intermediates=(Intermediate.HASH,), flags=Flags.NOP,


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