aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-18 11:06:29 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-18 11:06:29 +0000
commitaa692d19e4b0581b49979e65cb8a974e1bd2a65f (patch)
tree04492701f1bcef9945c80530d3e6a4e7951c2647
parentcsi: implement 'Query Device Status' (diff)
csi: document "Send Device Attributes (Secondary DA)"
-rw-r--r--csi.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index ff7a83a9..2a5f9c84 100644
--- a/csi.c
+++ b/csi.c
@@ -1096,12 +1096,32 @@ csi_dispatch(struct terminal *term, uint8_t final)
case '>': {
switch (final) {
case 'c': {
+ /* Send Device Attributes (Secondary DA) */
int param = vt_param_get(term, 0, 0);
if (param != 0) {
UNHANDLED();
break;
}
+ /*
+ * Param 1 - terminal type:
+ * 0 - vt100
+ * 1 - vt220
+ * 2 - vt240
+ * 18 - vt330
+ * 19 - vt340
+ * 24 - vt320
+ * 41 - vt420
+ * 61 - vt510
+ * 64 - vt520
+ * 65 - vt525
+ *
+ * Param 2 - firmware version
+ * xterm uses its version number. We use an xterm
+ * version number too, since e.g. Emacs uses this to
+ * determine level of support.
+ */
+
term_to_slave(term, "\033[>41;347;0c", 12);
break;
}