Explorar o código

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.
Roberto E. Vargas Caballero %!s(int64=10) %!d(string=hai) anos
pai
achega
bcbaf5d9be
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      st.c

+ 4 - 1
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 */