summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-18 12:03:01 -0400
committerJune McEnroe <june@causal.agency>2021-10-18 12:03:01 -0400
commit5f86a59e1f090d85e60815e751fe0667b4910da4 (patch)
treeb9d6b38592ba91fd00c9e9899a74abefc2523d12 /bin
parentAdd meta charset to up -t output (diff)
downloadsrc-5f86a59e1f090d85e60815e751fe0667b4910da4.tar.gz
src-5f86a59e1f090d85e60815e751fe0667b4910da4.zip
Skip DECKP* in lexer
Diffstat (limited to 'bin')
-rw-r--r--bin/shotty.l9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/shotty.l b/bin/shotty.l
index b8c04f52..ab1ce202 100644
--- a/bin/shotty.l
+++ b/bin/shotty.l
@@ -45,8 +45,6 @@
 	X(CUP) \
 	X(CUU) \
 	X(DCH) \
-	X(DECKPAM) \
-	X(DECKPNM) \
 	X(DECRC) \
 	X(DECRST) \
 	X(DECSC) \
@@ -132,8 +130,8 @@ ESC \x1B
 
 {ESC}7	return DECSC;
 {ESC}8	return DECRC;
-{ESC}=	return DECKPAM;
-{ESC}>	return DECKPNM;
+{ESC}=	// DECKPAM
+{ESC}>	// DECKPNM
 {ESC}M	return RI;
 
 {ESC}"(0"	g0 = DECSpecial;
@@ -425,10 +423,7 @@ static void update(enum Code cc) {
 			x = bound(0, x+w, (mode & Wrap ? cols : cols-1));
 			return;
 		}
-
 		break; case MC:;
-		break; case DECKPAM:;
-		break; case DECKPNM:;
 	}
 
 	x = bound(0, x, cols-1);