removed old VT52 escapes, fixed VT100 IND.

master
Aurélien Aptel 14 years ago
parent 5258d60545
commit 1f6e7b84c6

17
st.c

@ -867,22 +867,13 @@ tputc(char c) {
case '(': case '(':
term.esc |= ESC_ALTCHARSET; term.esc |= ESC_ALTCHARSET;
break; break;
case 'A': case 'D': /* IND -- Linefeed */
tmoveto(term.c.x, term.c.y-1); if(term.c.y == term.bot)
term.esc = 0; tscrollup(1);
break; else
case 'B':
tmoveto(term.c.x, term.c.y+1); tmoveto(term.c.x, term.c.y+1);
term.esc = 0; term.esc = 0;
break; 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);
term.esc = 0;
break;
case 'E': /* NEL -- Next line */ case 'E': /* NEL -- Next line */
tnewline(); tnewline();
term.esc = 0; term.esc = 0;

Loading…
Cancel
Save