summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-07-10 00:24:15 -0400
committerJune McEnroe <june@causal.agency>2019-07-10 00:24:15 -0400
commit967e6347b813947f3b06d723f862bd5bb52c26f1 (patch)
tree7012ed499cada84d17336b57a2505ecc702e3556
parentAdd shotty man page and build it (diff)
downloadsrc-967e6347b813947f3b06d723f862bd5bb52c26f1.tar.gz
src-967e6347b813947f3b06d723f862bd5bb52c26f1.zip
Ignore SM and RM
Diffstat (limited to '')
-rw-r--r--bin/shotty.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/shotty.c b/bin/shotty.c
index 080986f1..304be444 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]) {
ared.c?id=2fc008d6dea2456548825c973a5516b5cdfd9c8c&follow=1'>ui-shared: ban strcat()Christian Hesse 2018-09-11ui-patch: ban sprintf()Christian Hesse 2018-09-11ui-log: ban strncpy()Christian Hesse 2018-09-11ui-log: ban strcpy()Christian Hesse 2018-09-11parsing: ban sprintf()Christian Hesse 2018-09-11parsing: ban strncpy()Christian Hesse 2018-08-28filters: generate anchor links from markdownChristian Hesse 2018-08-03Bump version.Jason A. Donenfeld 2018-08-03clone: fix directory traversalJason A. Donenfeld 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev