mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-05 07:15:30 -04:00
csi: Send Device Attributes, Tertiary DA: require Ps == 0
This commit is contained in:
parent
c186f3dc0e
commit
7d8327369b
1 changed files with 7 additions and 4 deletions
11
csi.c
11
csi.c
|
|
@ -1129,10 +1129,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
case '>': {
|
case '>': {
|
||||||
switch (final) {
|
switch (final) {
|
||||||
case 'c': {
|
case 'c':
|
||||||
/* Send Device Attributes (Secondary DA) */
|
/* Send Device Attributes (Secondary DA) */
|
||||||
int param = vt_param_get(term, 0, 0);
|
if (vt_param_get(term, 0, 0) != 0) {
|
||||||
if (param != 0) {
|
|
||||||
UNHANDLED();
|
UNHANDLED();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -1158,7 +1157,6 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
|
|
||||||
term_to_slave(term, "\033[>41;347;0c", 12);
|
term_to_slave(term, "\033[>41;347;0c", 12);
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case 'm':
|
case 'm':
|
||||||
if (term->vt.params.idx == 0) {
|
if (term->vt.params.idx == 0) {
|
||||||
|
|
@ -1255,6 +1253,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
case '=': {
|
case '=': {
|
||||||
switch (final) {
|
switch (final) {
|
||||||
case 'c':
|
case 'c':
|
||||||
|
if (vt_param_get(term, 0, 0) != 0) {
|
||||||
|
UNHANDLED();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/* Send Device Attributes (Tertiary DA) */
|
/* Send Device Attributes (Tertiary DA) */
|
||||||
|
|
||||||
/* Note: this is supposed to be the "unit ID". But it is
|
/* Note: this is supposed to be the "unit ID". But it is
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue