From 0250a703e41aab6db944c1e513f50b8cdb19c999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 18 Nov 2019 11:44:03 +0100 Subject: [PATCH] csi: implement 'Query Device Status' By replying with "Device OK" --- csi.c | 5 +++++ 1 file changed, 5 insertions(+) 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 */