summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-07 14:09:05 -0400
committerJune McEnroe <june@causal.agency>2019-08-07 14:09:05 -0400
commite240e10086730188e0a724ef852f4c5a8ccf7c93 (patch)
treef1cf193934df5c34e4c254656c385fabb5a22379
parentImplement SU and SD (diff)
downloadstream-e240e10086730188e0a724ef852f4c5a8ccf7c93.tar.gz
stream-e240e10086730188e0a724ef852f4c5a8ccf7c93.zip
Implement IND
-rw-r--r--term.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/term.c b/term.c
index e77ab67..6e953a2 100644
--- a/term.c
+++ b/term.c
@@ -128,6 +128,7 @@ static char updateNUL(wchar_t ch) {
 }
 
 enum C1 {
+	IND = 'D',
 	RI  = 'M',
 	CSI = '[',
 	ST  = '\\',
@@ -145,7 +146,8 @@ static char updateESC(wchar_t ch) {
 		break; case CSI: return CSI;
 		break; case OSC: return OSC;
 
-		break; case RI: scrollDown(1);
+		break; case IND: scrollUp(1);
+		break; case RI:  scrollDown(1);
 
 		break; case '(': discard = true; return ESC;
 		break; case '=': // ignore