From 41b3389ec0439ed7734df4a9d38d2261738d82b1 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Fri, 15 Jun 2012 16:23:57 -0700 Subject: [PATCH] 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. --- termemu.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/termemu.js b/termemu.js index 62616df..8163c55 100644 --- a/termemu.js +++ b/termemu.js @@ -1004,6 +1004,10 @@ var termemu = { if (params[i] == 1) { keyHexCodes.appCursor(true); } + else if (params[i] == 7) { + /* Wraparound ON is the only mode implemented. */ + debug(0, "Wraparound mode"); + } else if (params[i] == 1048) { this.saveCursor(); } @@ -1018,8 +1022,14 @@ var termemu = { else if (c == 108) { /* l - reset modes */ if (prefix != '?') { - debug(1, "Unimplemented CSI sequence: " + comstr); - return; + if (prefix === null && params[0] == 4) { + /* Insert mode is not implemented. */ + debug(0, "Replace mode"); + } + else { + debug(1, "Unimplemented CSI sequence: " + comstr); + return; + } } for (var i = 0; i < params.length; i++) { if (params[i] == 1) {