diff options
author | Aurélien Aptel | 2010-02-21 14:39:31 +0100 |
---|---|---|
committer | Aurélien Aptel | 2010-02-21 14:39:31 +0100 |
commit | 63596af043e9dacf94616f761d82078f6106cb36 (patch) | |
tree | b6b0699e5f184ff8bafc72c03a0b3b9e3f64320e /st.c | |
parent | 4dfb7287ef51bc481865bfec259fa8a7e979b4e3 (diff) | |
download | aur-63596af043e9dacf94616f761d82078f6106cb36.tar.gz |
added VT100 RI.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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:'.'); |