mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-15 08:21:03 -04:00
csi: implement "Send Device Attributes (Tertiary DA)"
This commit is contained in:
parent
612bf9ef4f
commit
d41c4b9195
1 changed files with 18 additions and 0 deletions
18
csi.c
18
csi.c
|
|
@ -1248,6 +1248,24 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
break; /* private == '!' */
|
break; /* private == '!' */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case '=': {
|
||||||
|
switch (final) {
|
||||||
|
case 'c':
|
||||||
|
/* Send Device Attributes (Tertiary DA) */
|
||||||
|
|
||||||
|
/* Note: this is supposed to be the "unit ID". But it is
|
||||||
|
* unclear what the format *is*. Here I've simply copied
|
||||||
|
* the reply from xterm */
|
||||||
|
term_to_slave(term, "\033P!|00000000\033\\", 14);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
UNHANDLED();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break; /* private == '=' */
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
UNHANDLED();
|
UNHANDLED();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue