csi: only respond to Primary DA when Ps == 0

This commit is contained in:
Daniel Eklöf 2020-10-09 18:53:00 +02:00
parent 5daaaa03c2
commit 5477ee8894
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 6 additions and 0 deletions

View file

@ -53,6 +53,7 @@
(https://codeberg.org/dnkl/foot/issues/151).
* Crash after either resizing a window or changing the font size if
there were sixels present in the scrollback while doing so.
* _Send Device Attributes_ to only send a response if `Ps == 0`.
### Security

5
csi.c
View file

@ -653,6 +653,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
case 'c': {
if (vt_param_get(term, 0, 0) != 0) {
UNHANDLED();
break;
}
/* Send Device Attributes (Primary DA) */
/*