From f5ee01ed6a0e55d81b969e13e1fab8994c28294d Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 10 Jul 2019 00:24:15 -0400 Subject: Ignore SM and RM --- bin/shotty.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin/shotty.c') diff --git a/bin/shotty.c b/bin/shotty.c index e9cf5b82..234cd07f 100644 --- a/bin/shotty.c +++ b/bin/shotty.c @@ -101,7 +101,9 @@ enum { ED = 'J', EL, VPA = 'd', - SGR = 'm', + SM = 'h', + RM = 'l', + SGR, }; static char updateESC(wchar_t ch) { @@ -112,6 +114,7 @@ static char updateESC(wchar_t ch) { } switch (ch) { case '(': discard = true; return ESC; + case '=': return NUL; case CSI: return CSI; default: warnx("unhandled ESC %lc", ch); return NUL; } @@ -173,6 +176,9 @@ static char updateCSI(wchar_t ch) { } } + break; case SM: // ignore + break; case RM: // ignore + break; case SGR: { for (uint i = 0; i < p + 1; ++i) { switch (ps[i]) { -- cgit 1.4.1