diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 11:06:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 11:06:29 +0000 |
| commit | aa692d19e4b0581b49979e65cb8a974e1bd2a65f (patch) | |
| tree | 04492701f1bcef9945c80530d3e6a4e7951c2647 /csi.c | |
| parent | csi: implement 'Query Device Status' (diff) | |
csi: document "Send Device Attributes (Secondary DA)"
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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; } |
