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);
t/bin/downgrade.c?id=68f41009e9283757b672bbafcaa7bb0bdd121e32&follow=1'>Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe