comparison termemu.js @ 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 144595e50376
children 1d3cfe10974a
comparison
equal deleted inserted replaced
148:bac9c3b01692 149:6758d832c10c
968 debug(1, "Invalid CSI ` sequence: " + comstr); 968 debug(1, "Invalid CSI ` sequence: " + comstr);
969 return; 969 return;
970 } 970 }
971 this.cmove(null, count - 1); 971 this.cmove(null, count - 1);
972 } 972 }
973 else if (c == 99) {
974 /* c - query terminal attributes */
975 if (prefix !== null) {
976 debug(1, "Unimplemented CSI sequence: " + comstr);
977 return;
978 }
979 /* "CSI ? 1 ; 2 c" - VT100 */
980 sendback("1b5b3f313b3263");
981 }
973 else if (c == 100) { 982 else if (c == 100) {
974 /* d - go to row */ 983 /* d - go to row */
975 if (prefix || postfix) { 984 if (prefix || postfix) {
976 debug(1, "Invalid CSI d sequence: " + comstr); 985 debug(1, "Invalid CSI d sequence: " + comstr);
977 return; 986 return;
1133 i++; 1142 i++;
1134 } 1143 }
1135 if (codenum == 0 || codenum == 2) { 1144 if (codenum == 0 || codenum == 2) {
1136 setTitle(msgstr); 1145 setTitle(msgstr);
1137 } 1146 }
1147 else if (codenum >= 110 && codenum <= 118) {
1148 /* Reset colors that can't be changed yet anyway */
1149 debug(0, "Resetting dynamic color " + codenum);
1150 }
1138 else 1151 else
1139 debug(1, "Unimplemented OSC command " + codenum + " " + msgstr); 1152 debug(1, "Unimplemented OSC command " + codenum + " " + msgstr);
1140 return; 1153 return;
1141 }, 1154 },
1142 makeCell: function(c) { 1155 makeCell: function(c) {