[dev] [st][PATCH 2/4] Add 8 bit version of NEL

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 8 Jul 2014 23:37:12 +0200

NEL version for 7 bits environments already was implemented in st.
This patch adds the 8 bit version of it.
---
 st.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 77ae26e..1162700 100644
--- a/st.c
+++ b/st.c
_AT_@ -2401,7 +2401,10 @@ tcontrolcode(uchar ascii) {
 	case 0177:   /* DEL (IGNORED) */
 		return;
 	case 0x84:   /* TODO: IND */
-	case 0x85:   /* TODO: NEL */
+		break;
+	case 0x85:   /* NEL -- Next line */
+		tnewline(1); /* always go to first col */
+		break;
 	case 0x88:   /* TODO: HTS */
 	case 0x8d:   /* TODO: RI */
 	case 0x8e:   /* TODO: SS2 */
-- 
1.8.5.3
Received on Tue Jul 08 2014 - 23:37:12 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 08 2014 - 23:48:19 CEST