aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-18 10:44:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-18 10:44:03 +0000
commit0250a703e41aab6db944c1e513f50b8cdb19c999 (patch)
tree7edae799a496e9993bb910cb3c84b82a947d2ace
parentterm: report_mouse_click(): legacy mode only supports rows/cols up to 223. (diff)
csi: implement 'Query Device Status'
By replying with "Device OK"
-rw-r--r--csi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/csi.c b/csi.c
index 0fadc268..ff7a83a9 100644
--- a/csi.c
+++ b/csi.c
@@ -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 */