summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel2010-08-30 01:19:05 +0200
committerAurélien Aptel2010-08-30 01:19:05 +0200
commit1f6e7b84c6131612cb8cb7751a2b373af9957c6d (patch)
treedfed64cc2eecb5bf49536515ef49411835908320
parent5258d6054599e456c260984b8619500d0b4b75b7 (diff)
downloadst-1f6e7b84c6131612cb8cb7751a2b373af9957c6d.tar.gz
st-1f6e7b84c6131612cb8cb7751a2b373af9957c6d.tar.xz
st-1f6e7b84c6131612cb8cb7751a2b373af9957c6d.zip
removed old VT52 escapes, fixed VT100 IND.
-rw-r--r--st.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/st.c b/st.c
index 5c7d855..6a51581 100644
--- a/st.c
+++ b/st.c
@@ -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 */