csi: implement 'Query Device Status'

By replying with "Device OK"
This commit is contained in:
Daniel Eklöf 2019-11-18 11:44:03 +01:00
parent 7ff5a8027a
commit 0250a703e4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

5
csi.c
View file

@ -755,6 +755,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
if (term->vt.params.idx > 0) {
int param = vt_param_get(term, 0, 0);
switch (param) {
case 5:
/* Query device status */
term_to_slave(term, "\x1b[0n", 4); /* "Device OK" */
break;
case 6: {
/* u7 - cursor position query */