summaryrefslogtreecommitdiffstats
path: root/src/parser.l
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-04 02:42:50 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-04 02:43:23 -0400
commit261e8c3bb58a641382e4af762091c4e64783a0f1 (patch)
tree0206f0100d9c0e4ac8705aafbedc5739405c7a46 /src/parser.l
parentf340bd2bb7b9872948aab33124814a67093f0368 (diff)
downloadlibvt100-261e8c3bb58a641382e4af762091c4e64783a0f1.tar.gz
libvt100-261e8c3bb58a641382e4af762091c4e64783a0f1.zip
explicitly suppress status report escapes
not interested in supporting this
Diffstat (limited to 'src/parser.l')
-rw-r--r--src/parser.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parser.l b/src/parser.l
index 34abf4a..d218403 100644
--- a/src/parser.l
+++ b/src/parser.l
@@ -46,6 +46,7 @@ DECSC {ESC}7
DECRC {ESC}8
DECCSI {CSI}\?
+STATUSCSI {CSI}>
CSIPARAM1 ([0-9]+)?
CSIPARAM2 ([0-9]+(;[0-9]+)?)?
CSIPARAM24 ([0-9]+(;[0-9]+){1,3})?
@@ -85,6 +86,9 @@ G1D4 {ESC}\)[\040-\057]*[\060-\176]
G2D4 {ESC}\*[\040-\057]*[\060-\176]
G3D4 {ESC}\+[\040-\057]*[\060-\176]
+DA {STATUSCSI}{CSIPARAM1}c
+DSR {CSI}{CSIPARAM1}n
+
%{
static void vt100_parser_handle_bel(VT100Screen *vt);
static void vt100_parser_handle_bs(VT100Screen *vt);
@@ -184,6 +188,9 @@ static void vt100_parser_handle_text(VT100Screen *vt, char *text, size_t len);
{G3D4} /* ignored - not interested in implementing character sets, unicode
should be sufficient */
+{DA} |
+{DSR} /* ignored - not interested in escapes that generate responses */
+
{ASCII}+ vt100_parser_handle_ascii(yyextra, yytext, yyleng);
{CHAR}+ vt100_parser_handle_text(yyextra, yytext, yyleng);