summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2021-11-27 19:45:07 +0100
committerChristian Persch <chpe@src.gnome.org>2021-11-27 19:45:07 +0100
commitffefea92b97afd334b2f09df7a2ef040598de1c8 (patch)
treec07b0b8be424a0b21c71ab0545e6499c01d39903
parent205aecf066326de679138106a004a0e893935a9f (diff)
downloadvte-ffefea92b97afd334b2f09df7a2ef040598de1c8.tar.gz
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.
-rwxr-xr-xsrc/parser-seq.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/parser-seq.py b/src/parser-seq.py
index c59b3161..2243a203 100755
--- a/src/parser-seq.py
+++ b/src/parser-seq.py
@@ -307,14 +307,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,
@@ -351,6 +357,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,
@@ -359,14 +367,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,