Mercurial > hg > rlgwebd
changeset 149:6758d832c10c
Implement another control sequence.
CSI c queries terminal attributes.
author | John "Elwin" Edwards |
---|---|
date | Sat, 25 Jan 2014 22:10:01 -0800 |
parents | bac9c3b01692 |
children | 1d3cfe10974a |
files | termemu.js |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/termemu.js Mon Jan 06 09:11:35 2014 -0500 +++ b/termemu.js Sat Jan 25 22:10:01 2014 -0800 @@ -970,6 +970,15 @@ } 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 @@ 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;