From d5b4cb5de0dbd08504a7052bdce8987082abaafe Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Sat, 25 Jan 2014 22:10:01 -0800 Subject: [PATCH] Implement another control sequence. CSI c queries terminal attributes. --- termemu.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/termemu.js b/termemu.js index b2c8855..43334f7 100644 --- a/termemu.js +++ b/termemu.js @@ -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;