diff options
author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-30 01:19:05 +0200 |
---|---|---|
committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2010-08-30 01:19:05 +0200 |
commit | 674926af154fd1733ea82325ce6f478d5ef3571b (patch) | |
tree | dfed64cc2eecb5bf49536515ef49411835908320 /st.c | |
parent | 913c0cbd34d940a8211520709684a0c03f2026e5 (diff) | |
download | st-674926af154fd1733ea82325ce6f478d5ef3571b.tar.gz st-674926af154fd1733ea82325ce6f478d5ef3571b.tar.bz2 |
removed old VT52 escapes, fixed VT100 IND.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 19 |
1 files changed, 5 insertions, 14 deletions
@@ -867,20 +867,11 @@ tputc(char c) { case '(': term.esc |= ESC_ALTCHARSET; break; - case 'A': - tmoveto(term.c.x, term.c.y-1); - term.esc = 0; - break; - case 'B': - tmoveto(term.c.x, term.c.y+1); - term.esc = 0; - break; - case 'C': - tmoveto(term.c.x+1, term.c.y); - term.esc = 0; - break; - case 'D': /* XXX: CUP (VT100) or IND (VT52) ... */ - tmoveto(term.c.x-1, term.c.y); + case 'D': /* IND -- Linefeed */ + if(term.c.y == term.bot) + tscrollup(1); + else + tmoveto(term.c.x, term.c.y+1); term.esc = 0; break; case 'E': /* NEL -- Next line */ |