JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add 8 bit version of DECID
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 20 Jun 2014 07:51:18 +0000 (09:51 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 8 Jul 2014 21:28:10 +0000 (23:28 +0200)
DECID version for 7 bits environments already was implemented in st.
This patch adds the 8 bit version of it.

st.c

diff --git a/st.c b/st.c
index 69ec122..77ae26e 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2408,7 +2408,10 @@ tcontrolcode(uchar ascii) {
        case 0x8f:   /* TODO: SS3 */
        case 0x90:   /* TODO: DCS */
        case 0x98:   /* TODO: SOS */
-       case 0x9a:   /* TODO: DECID */
+               break;
+       case 0x9a:   /* DECID -- Identify Terminal */
+               ttywrite(VT102ID, sizeof(VT102ID) - 1);
+               break;
        case 0x9b:   /* TODO: CSI */
        case 0x9c:   /* TODO: ST */
        case 0x9d:   /* TODO: OSC */