diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 10:44:03 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-18 10:44:03 +0000 |
| commit | 0250a703e41aab6db944c1e513f50b8cdb19c999 (patch) | |
| tree | 7edae799a496e9993bb910cb3c84b82a947d2ace | |
| parent | term: 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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 */ |
