diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-02-05 22:43:03 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-02-05 22:43:03 +0100 |
commit | c21b4223c2a031e281659efcb0c4becb3c15434f (patch) | |
tree | a7bb43504d86712ad612ddf27294149e3e041473 | |
parent | 144bd35be3640612786bed3b087dfd99309abd02 (diff) | |
download | vte-c21b4223c2a031e281659efcb0c4becb3c15434f.tar.gz |
parser: cat: Make linter warn on unsupported RLogin DECSIXEL ID extension
-rw-r--r-- | src/parser-cat.cc | 6 | ||||
-rw-r--r-- | src/vteseq.cc | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/parser-cat.cc b/src/parser-cat.cc index fec7d1b1..e9e5409d 100644 --- a/src/parser-cat.cc +++ b/src/parser-cat.cc @@ -759,6 +759,12 @@ public: */ if (seq.collect1(1) == 5) warn("DECSIXEL OR-mode not supported"); + + /* Image ID (args[3]) is a nonstandard RLogin extension that is + * not supported in VTE. + */ + if (seq.collect1(3) != -1) + warn("DECSIXEL ID extension not supported"); break; default: diff --git a/src/vteseq.cc b/src/vteseq.cc index be1e52bd..a968e449 100644 --- a/src/vteseq.cc +++ b/src/vteseq.cc @@ -4380,11 +4380,13 @@ Terminal::DECSIXEL(vte::parser::Sequence const& seq) * 5: OR mode (nonstandard NetBSD/x68k extension, see * [https://qiita.com/arakiken/items/26f6c67da5a9f9f907ac]) * args[2]: horizontal grid size in the unit set by SSU + * args[3]: image ID (range 0..1024) (nonstandard RLogin extension) * * Defaults: * args[0]: 0 * args[1]: 2 (1 for printers) * args[2]: no default + * args[3]: no default * * References: VT330 * DEC PPLV2 ยง 5.4 |