mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-15 08:21:03 -04:00
csi: implement 'Query Device Status'
By replying with "Device OK"
This commit is contained in:
parent
7ff5a8027a
commit
0250a703e4
1 changed files with 5 additions and 0 deletions
5
csi.c
5
csi.c
|
|
@ -755,6 +755,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
if (term->vt.params.idx > 0) {
|
if (term->vt.params.idx > 0) {
|
||||||
int param = vt_param_get(term, 0, 0);
|
int param = vt_param_get(term, 0, 0);
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
case 5:
|
||||||
|
/* Query device status */
|
||||||
|
term_to_slave(term, "\x1b[0n", 4); /* "Device OK" */
|
||||||
|
break;
|
||||||
|
|
||||||
case 6: {
|
case 6: {
|
||||||
/* u7 - cursor position query */
|
/* u7 - cursor position query */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue