Add SUB and CAN control codes

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri, 28 Sep 2012 22:04:17 +0200

These control codes reset any escape sequence already initialised.
---
 st.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c
index aa5f085..8e25d23 100644
--- a/st.c
+++ b/st.c
_AT_@ -1816,8 +1816,11 @@ tputc(char *c, int len) {
 		return;
 	case '\016':	/* XXX: SO */
 	case '\017':	/* XXX: SI */
-	case '\032':	/* XXX: SUB */
-	case '\030':	/* XXX: CAN */
+		break;
+	case '\032':	/* SUB */
+	case '\030':	/* CAN */
+		csireset();
+		return;
 	default:
 	/* case '\005':	ENQ (IGNORED) */
 	/* case '\000':	NUL (IGNORED) */
-- 
1.7.10.4
--yrj/dFKFPuw6o+aM
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename="0003-Add-SI-and-SO-control-codes.patch"
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 06 2012 - 19:24:02 CEST