summary refs log tree commit diff
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
commitf56ba06b50be0f5b37c34b325fa78ce960d0a307 (patch)
tree99560ee0b84f4cbcf016ee27aae6e47ea4e2bb5b
parentAdd meta charset to up -t output (diff)
downloadsrc-f56ba06b50be0f5b37c34b325fa78ce960d0a307.tar.gz
src-f56ba06b50be0f5b37c34b325fa78ce960d0a307.zip
Skip DECKP* in lexer
Diffstat (limited to '')
-rw-r--r--bin/shotty.l9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/shotty.l b/bin/shotty.l
index e62b361b..67b5d422 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);