Implement another control sequence.

CSI c queries terminal attributes.
This commit is contained in:
John "Elwin" Edwards 2014-01-25 22:10:01 -08:00
parent 668f6d246d
commit d5b4cb5de0

View file

@ -970,6 +970,15 @@ var termemu = {
}
this.cmove(null, count - 1);
}
else if (c == 99) {
/* c - query terminal attributes */
if (prefix !== null) {
debug(1, "Unimplemented CSI sequence: " + comstr);
return;
}
/* "CSI ? 1 ; 2 c" - VT100 */
sendback("1b5b3f313b3263");
}
else if (c == 100) {
/* d - go to row */
if (prefix || postfix) {
@ -1135,6 +1144,10 @@ var termemu = {
if (codenum == 0 || codenum == 2) {
setTitle(msgstr);
}
else if (codenum >= 110 && codenum <= 118) {
/* Reset colors that can't be changed yet anyway */
debug(0, "Resetting dynamic color " + codenum);
}
else
debug(1, "Unimplemented OSC command " + codenum + " " + msgstr);
return;