aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorAurélien Aptel2010-02-21 14:39:31 +0100
committerAurélien Aptel2010-02-21 14:39:31 +0100
commit63596af043e9dacf94616f761d82078f6106cb36 (patch)
treeb6b0699e5f184ff8bafc72c03a0b3b9e3f64320e /st.c
parent4dfb7287ef51bc481865bfec259fa8a7e979b4e3 (diff)
downloadaur-63596af043e9dacf94616f761d82078f6106cb36.tar.gz
added VT100 RI.
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/st.c b/st.c
index 84292f545395..c360900c9837 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:'.');