removed old VT52 escapes, fixed VT100 IND.
This commit is contained in:
parent
5258d60545
commit
1f6e7b84c6
1 changed files with 5 additions and 14 deletions
17
st.c
17
st.c
|
@ -867,22 +867,13 @@ 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':
|
||||
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 '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 */
|
||||
tnewline();
|
||||
term.esc = 0;
|
||||
|
|
Loading…
Reference in a new issue