ref: 6383135fb64e443c8886f076f35e0e3a82f0a1dc
parent: 789a6430296fd5b0dadddda1b815c57abc485594
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jan 14 11:30:09 EST 2023
vt: ignore xterm Set/reset key modifier options escape sequence
--- a/sys/src/cmd/vt/vt.c
+++ b/sys/src/cmd/vt/vt.c
@@ -421,10 +421,9 @@
operand[0] = number(buf, &i);
noperand = 1;
while(buf[0] == ';' || buf[0] == '?'){
- if(noperand < nelem(operand)){
- noperand++;
- operand[noperand-1] = number(buf, nil);
- } else
+ if(noperand < nelem(operand))
+ operand[noperand++] = number(buf, nil);
+ else
number(buf, nil);
}
@@ -834,6 +833,11 @@
case 'l':
break;
}
+ break;
+ case '>': /* Set/reset key modifier options (XTMODKEYS), xterm. */
+ number(buf, nil);
+ if(buf[0] != 'm')
+ number(buf, nil);
break;
}