From: Aurélien Aptel <aurelien.aptel@gmail.com>
Date: Sun, 21 Feb 2010 13:59:32 +0000 (+0100)
Subject: added VT100 NEL.
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=7cdaf130b17e4991da9bb3d8d1341e0092474a73;p=st.git

added VT100 NEL.
---

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);