csi: adjust reply to primary DA

Report us as being VT220, as VT420 causes vttest to send a
DECRQSS. This is a DCS request that we don't implement (there's no DCS
handling *at all* - all DCS strings are ignored).

Should be ok as no one appears to care about this one. Other terminals
report a much lower level (urxvt for example, replies with vt100. We
used to reply with vt102, which also was fine).
This commit is contained in:
Daniel Eklöf 2019-11-18 12:41:10 +01:00
parent 2c99f692b3
commit 612bf9ef4f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -353,7 +353,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
* - 28 Rectangular editing.
* - 29 ANSI text locator (i.e., DEC Locator mode).
*/
const char *reply = "\033[?64;6;15;16;17;22;28c";
const char *reply = "\033[?62;6;15;17;22;28c";
term_to_slave(term, reply, strlen(reply));
break;
}