aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-02-21 14:59:32 +0100
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-02-21 14:59:32 +0100
commit8898ecc34a564a305b0424fa19688977e7c80feb (patch)
tree2c70646a7ecc676441d67554488e32963241384a
parenta744f2f8979d106e77e4b6786f56252959d7a6ae (diff)
downloadst-8898ecc34a564a305b0424fa19688977e7c80feb.tar.gz
st-8898ecc34a564a305b0424fa19688977e7c80feb.tar.bz2
added VT100 NEL.
-rw-r--r--st.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/st.c b/st.c
index c360900..8bbb1a5 100644
--- a/st.c
+++ b/st.c
@@ -856,10 +856,14 @@ tputc(char c) {
tmoveto(term.c.x+1, term.c.y);
term.esc = 0;
break;
- case 'D':
+ 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;
+ break;
case 'M': /* RI -- Reverse index */
if(term.c.y == term.top)
tinsertblankline(1);