comparison termemu.js @ 54:de01aafd4dd6

termemu.js: don't warn on certain control sequences. Don't print a debug message for some control sequences that technically are unimplemented, but would just put the terminal into the only mode yet implemented. CSI 4l and CSI ?7h are like this.
author John "Elwin" Edwards <elwin@sdf.org>
date Fri, 15 Jun 2012 16:23:57 -0700
parents 826a7ced69f8
children 7a50b4412fea
comparison
equal deleted inserted replaced
53:e93751ff7815 54:de01aafd4dd6
1002 } 1002 }
1003 for (var i = 0; i < params.length; i++) { 1003 for (var i = 0; i < params.length; i++) {
1004 if (params[i] == 1) { 1004 if (params[i] == 1) {
1005 keyHexCodes.appCursor(true); 1005 keyHexCodes.appCursor(true);
1006 } 1006 }
1007 else if (params[i] == 7) {
1008 /* Wraparound ON is the only mode implemented. */
1009 debug(0, "Wraparound mode");
1010 }
1007 else if (params[i] == 1048) { 1011 else if (params[i] == 1048) {
1008 this.saveCursor(); 1012 this.saveCursor();
1009 } 1013 }
1010 else if (params[i] == 1049) { 1014 else if (params[i] == 1049) {
1011 this.toAltBuf(); 1015 this.toAltBuf();
1016 } 1020 }
1017 } 1021 }
1018 else if (c == 108) { 1022 else if (c == 108) {
1019 /* l - reset modes */ 1023 /* l - reset modes */
1020 if (prefix != '?') { 1024 if (prefix != '?') {
1021 debug(1, "Unimplemented CSI sequence: " + comstr); 1025 if (prefix === null && params[0] == 4) {
1022 return; 1026 /* Insert mode is not implemented. */
1027 debug(0, "Replace mode");
1028 }
1029 else {
1030 debug(1, "Unimplemented CSI sequence: " + comstr);
1031 return;
1032 }
1023 } 1033 }
1024 for (var i = 0; i < params.length; i++) { 1034 for (var i = 0; i < params.length; i++) {
1025 if (params[i] == 1) { 1035 if (params[i] == 1) {
1026 keyHexCodes.appCursor(false); 1036 keyHexCodes.appCursor(false);
1027 } 1037 }