From d41c4b9195da70465994acc3ad857b428f798203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 18 Nov 2019 12:46:52 +0100 Subject: [PATCH] csi: implement "Send Device Attributes (Tertiary DA)" --- csi.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/csi.c b/csi.c index bf5cca7b..fbfac35d 100644 --- a/csi.c +++ b/csi.c @@ -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;