From e14d7bb899ecec4aaca2347e92c5512292d3788a Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 17 Oct 2014 23:00:52 -0400 Subject: don't need a trailing [0-9;] for a CSI sequence to be incomplete this should fix "unhandled CSI sequence: \033[?", and hopefully the issue i was seeing where escape sequences were being split --- src/parser.l | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/parser.l b/src/parser.l index c11d87f..e5edbec 100644 --- a/src/parser.l +++ b/src/parser.l @@ -177,13 +177,12 @@ static void vt100_parser_handle_text(VT100Screen *vt, char *text, size_t len); {ASCII}+ vt100_parser_handle_ascii(yyextra, yytext, yyleng); {CHAR}+ vt100_parser_handle_text(yyextra, yytext, yyleng); -{LEAD2} | -{LEAD3}{CONT}? | -{LEAD4}{CONT}?{CONT}? | -{CSI}[<=?]?{CSIPARAMS}[0-9;] | -{CSI} | -{OSC}{CHAR}* | -{ESC} return yyleng; +{LEAD2} | +{LEAD3}{CONT}? | +{LEAD4}{CONT}?{CONT}? | +{CSI}[<=?]?{CSIPARAMS}[0-9;]? | +{OSC}{CHAR}* | +{ESC} return yyleng; <> return 0; -- cgit v1.2.3-54-g00ecf