[hackers] [st] Add SI and SO control codes || "Roberto E. Vargas Caballero"

From: <hg_AT_suckless.org>
Date: Sat, 6 Oct 2012 19:19:03 +0200 (CEST)

changeset: 356:1a27e212bc4d
user: "Roberto E. Vargas Caballero" <k0ga_AT_shike2.com>
date: Sat Oct 06 19:13:36 2012 +0200
files: st.c
description:
Add SI and SO control codes
SI and SO allows change the G0 and G1 selection. This implementation is not
full vt100 compatible, but it is complatible with linux virtual terminal
implementation. For full vt100 compatibility we need remake a lot of stuff
relate to the different charmaps.
---
 st.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff -r db7796d13e2b -r 1a27e212bc4d st.c
--- a/st.c	Sat Oct 06 19:13:08 2012 +0200
+++ b/st.c	Sat Oct 06 19:13:36 2012 +0200
_AT_@ -1814,9 +1814,12 @@
 		csireset();
 		term.esc = ESC_START;
 		return;
-	case '\016':	/* XXX: SO */
-	case '\017':	/* XXX: SI */
+	case '\016':	/* SO */
+		term.c.attr.mode |= ATTR_GFX;
 		break;
+	case '\017':	/* SI */
+		term.c.attr.mode &= ~ATTR_GFX;
+		return;
 	case '\032':	/* SUB */
 	case '\030':	/* CAN */
 		csireset();
Received on Sat Oct 06 2012 - 19:19:03 CEST

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