tadded VT100 NEL. - st - [fork] customized build of st, the simple terminal | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 7cdaf130b17e4991da9bb3d8d1341e0092474a73 | |
parent 639f16d200eee5e297187c582afd9fd2e3e8ef57 | |
Author: Aurélien Aptel <[email protected]> | |
Date: Sun, 21 Feb 2010 14:59:32 +0100 | |
added VT100 NEL. | |
Diffstat: | |
M st.c | 6 +++++- | |
1 file changed, 5 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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); |