aboutsummaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l16
1 files changed, 14 insertions, 2 deletions
diff --git a/parser.l b/parser.l
index 2d7ccb0..f2920b9 100644
--- a/parser.l
+++ b/parser.l
@@ -124,13 +124,25 @@ static void runes_parser_handle_osc2(RunesTerm *t, char *buf, size_t len);
{OSC1} runes_parser_handle_osc1(yyextra, yytext, yyleng);
{OSC2} runes_parser_handle_osc2(yyextra, yytext, yyleng);
-{CSI}[<=?]?{CSIPARAMS}(?s:.) {
+{CSI}[<=?]?{CSIPARAMS}{CTRL} {
+ fprintf(
+ stderr, "unhandled CSI sequence: \\033%*s\\%hho\n",
+ (int)yyleng - 2, yytext + 1, yytext[yyleng - 1]);
+}
+
+{CSI}[<=?]?{CSIPARAMS}{TEXT} {
fprintf(
stderr, "unhandled CSI sequence: \\033%*s\n",
(int)yyleng - 1, yytext + 1);
}
-{OSC}(?s:.) {
+{OSC}{CTRL} {
+ fprintf(
+ stderr, "unhandled OSC sequence: \\033%*s\\%hho\n",
+ (int)yyleng - 2, yytext + 1, yytext[yyleng - 1]);
+}
+
+{OSC}{TEXT} {
fprintf(
stderr, "unhandled OSC sequence: \\033%*s\n",
(int)yyleng - 1, yytext + 1);