Browse Source

added VT100 NEL.

master
Aurélien Aptel 14 years ago
parent
commit
7cdaf130b1
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      st.c

+ 5
- 1
st.c View File

@ -856,10 +856,14 @@ tputc(char c) {
tmoveto(term.c.x+1, term.c.y); tmoveto(term.c.x+1, term.c.y);
term.esc = 0; term.esc = 0;
break; break;
case 'D':
case 'D': /* XXX: CUP (VT100) or IND (VT52) ... */
tmoveto(term.c.x-1, term.c.y); tmoveto(term.c.x-1, term.c.y);
term.esc = 0; term.esc = 0;
break; break;
case 'E': /* NEL -- Next line */
tnewline();
term.esc = 0;
break;
case 'M': /* RI -- Reverse index */ case 'M': /* RI -- Reverse index */
if(term.c.y == term.top) if(term.c.y == term.top)
tinsertblankline(1); tinsertblankline(1);


Loading…
Cancel
Save