[hackers] [st] Add 8 bit version of DECID || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Thu, 10 Jul 2014 10:12:04 +0200

commit bcbaf5d9beb72f29d228d103634d648ca28fb48d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Fri Jun 20 09:51:18 2014 +0200

    Add 8 bit version of DECID
    
    DECID version for 7 bits environments already was implemented in st.
    This patch adds the 8 bit version of it.

diff --git a/st.c b/st.c
index 69ec122..77ae26e 100644
--- a/st.c
+++ b/st.c
_AT_@ -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 */
Received on Thu Jul 10 2014 - 10:12:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Jul 10 2014 - 10:24:07 CEST