From afc8ed97a6e77517c615491c2ed6f76fe2efc869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 14 Dec 2019 19:10:59 +0100 Subject: [PATCH] csi: describe format of reply to tertiary DA --- csi.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/csi.c b/csi.c index de597fd8..d6ae1f94 100644 --- a/csi.c +++ b/csi.c @@ -1258,11 +1258,17 @@ csi_dispatch(struct terminal *term, uint8_t final) break; } - /* Send Device Attributes (Tertiary DA) */ + /* + * Send Device Attributes (Tertiary DA) + * + * Reply format is "DCS ! | DDDDDDDD ST" + * + * D..D is the unit ID of the terminal, consisting of four + * hexadecimal pairs. The first pair represents the + * manufacturing site code. This code can be any + * hexadecimal value from 00 through FF. + */ - /* 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;