aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-02-21 14:39:31 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-02-21 14:39:31 +0100
commit639f16d200eee5e297187c582afd9fd2e3e8ef57 (patch)
treef53a5fc5733adc5892896c500326a8be7ebb8fe8
parent636c369d86b6452a89f54c497a9816ca1f866d4e (diff)
downloadst-639f16d200eee5e297187c582afd9fd2e3e8ef57.tar.gz
st-639f16d200eee5e297187c582afd9fd2e3e8ef57.tar.bz2
added VT100 RI.
-rw-r--r--st.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/st.c b/st.c
index 84292f5..c360900 100644
--- a/st.c
+++ b/st.c
@@ -860,6 +860,13 @@ tputc(char c) {
tmoveto(term.c.x-1, term.c.y);
term.esc = 0;
break;
+ case 'M': /* RI -- Reverse index */
+ if(term.c.y == term.top)
+ tinsertblankline(1);
+ else
+ tmoveto(term.c.x, term.c.y-1);
+ term.esc = 0;
+ break;
case '=': /* DECPAM */
term.mode |= MODE_APPKEYPAD;
term.esc = 0;
@@ -870,9 +877,11 @@ tputc(char c) {
break;
case '7':
tcursor(CURSOR_SAVE);
+ term.esc = 0;
break;
case '8':
tcursor(CURSOR_LOAD);
+ term.esc = 0;
break;
default:
fprintf(stderr, "erresc: unknown sequence ESC %02X '%c'\n", c, isprint(c)?c:'.');