summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--term.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/term.c b/term.c
index 22eb621..bb5d195 100644
--- a/term.c
+++ b/term.c
@@ -116,6 +116,7 @@ static char updateNUL(wchar_t ch) {
 }
 
 enum C1 {
+	RI  = 'M',
 	CSI = '[',
 	OSC = ']',
 	ST  = '\\',
@@ -131,6 +132,15 @@ static char updateESC(wchar_t ch) {
 		case '(': discard = true; return ESC;
 		case '=': return NUL;
 		case '>': return NUL;
+
+		case RI: {
+			move(
+				cell(scroll.top + 1, 0), cell(scroll.top, 0),
+				cols * (scroll.bot - scroll.top)
+			);
+			clear(cell(scroll.top, 0), cell(scroll.top, cols - 1));
+		}
+
 		case CSI: return CSI;
 		case OSC: return OSC;
 		default:  return unhandled("ESC %lc", ch);
nroe 2019-07-13Add shotty -cJune McEnroe 2019-07-13Add DL to shottyJune McEnroe 2019-07-12Color html rather than bodyJune McEnroe If background-color is only set on body then overscroll in Safari reveals white. 2019-07-12Make author consistent and update URLsJune McEnroe 2019-07-12Move to www/text.causal.agencyJune McEnroe 2019-07-12Add new causal.agency with shotty shotsJune McEnroe 2019-07-12Use -s to infer terminal sizeJune McEnroe 2019-07-12Add DCH to shottyJune McEnroe This makes htop mostly work. Scrolling region still missing. 2019-07-12Support insert mode in shottyJune McEnroe This is how curses puts characters into the bottom-right cell of the terminal. 2019-07-11Don't do carriage return on line feedJune McEnroe 2019-07-11Interpret 256color-style SGRsJune McEnroe 2019-07-11Use inline style rather than <b>, <i>, <u>June McEnroe 2019-07-11Factor out clearJune McEnroe 2019-07-11Add bright option to shottyJune McEnroe 2019-07-11Output <b>, <i>, <u> in shottyJune McEnroe 2019-07-10Ignore SM and RMJune McEnroe 2019-07-09Add shotty man page and build itJune McEnroe 2019-07-09Add up -cJune McEnroe 2019-07-09Add options for default colors to shottyJune McEnroe 2019-07-08Use char literals consistentlyJune McEnroe