aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-14 13:38:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-14 13:38:03 +0000
commit7d8327369b9cb256dfb50c1540d96c4239da6732 (patch)
treedf3b1ed86e275c139283b519ad8db323fa1844ae
parentclient: strncpy() size limit must be less than destination size (diff)
csi: Send Device Attributes, Tertiary DA: require Ps == 0
-rw-r--r--csi.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/csi.c b/csi.c
index a80db797..de597fd8 100644
--- a/csi.c
+++ b/csi.c
@@ -1129,10 +1129,9 @@ csi_dispatch(struct terminal *term, uint8_t final)
case '>': {
switch (final) {
- case 'c': {
+ case 'c':
/* Send Device Attributes (Secondary DA) */
- int param = vt_param_get(term, 0, 0);
- if (param != 0) {
+ if (vt_param_get(term, 0, 0) != 0) {
UNHANDLED();
break;
}
@@ -1158,7 +1157,6 @@ csi_dispatch(struct terminal *term, uint8_t final)
term_to_slave(term, "\033[>41;347;0c", 12);
break;
- }
case 'm':
if (term->vt.params.idx == 0) {
@@ -1255,6 +1253,11 @@ csi_dispatch(struct terminal *term, uint8_t final)
case '=': {
switch (final) {
case 'c':
+ if (vt_param_get(term, 0, 0) != 0) {
+ UNHANDLED();
+ break;
+ }
+
/* Send Device Attributes (Tertiary DA) */
/* Note: this is supposed to be the "unit ID". But it is