diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-02-21 14:39:31 +0100 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-02-21 14:39:31 +0100 |
commit | a744f2f8979d106e77e4b6786f56252959d7a6ae (patch) | |
tree | f53a5fc5733adc5892896c500326a8be7ebb8fe8 /st.c | |
parent | 21a92b4dc98e22ff3a3adbd5a0aa55ccb0c82a62 (diff) | |
download | st-a744f2f8979d106e77e4b6786f56252959d7a6ae.tar.gz st-a744f2f8979d106e77e4b6786f56252959d7a6ae.tar.bz2 |
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:'.'); |