diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 11:46:52 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 11:46:52 +0000 |
| commit | d41c4b9195da70465994acc3ad857b428f798203 (patch) | |
| tree | eb24e1f188a2de7c4b185d2c2af8827b49389e61 | |
| parent | csi: adjust reply to primary DA (diff) | |
csi: implement "Send Device Attributes (Tertiary DA)"
| -rw-r--r-- | csi.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1248,6 +1248,24 @@ csi_dispatch(struct terminal *term, uint8_t final) break; /* private == '!' */ } + case '=': { + switch (final) { + case 'c': + /* Send Device Attributes (Tertiary DA) */ + + /* Note: this is supposed to be the "unit ID". But it is + * unclear what the format *is*. Here I've simply copied + * the reply from xterm */ + term_to_slave(term, "\033P!|00000000\033\\", 14); + break; + + default: + UNHANDLED(); + break; + } + break; /* private == '=' */ + } + default: UNHANDLED(); break; |
