From f6fa3cf145700ab0ef088413f492b01628fb8595 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Wed, 9 Mar 2011 21:51:11 +0100 Subject: [PATCH] Improved handling of OSC, SDA and DCS sequences --- public/javascripts/ansi-interpreter.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/public/javascripts/ansi-interpreter.js b/public/javascripts/ansi-interpreter.js index d1a3234..255ea10 100644 --- a/public/javascripts/ansi-interpreter.js +++ b/public/javascripts/ansi-interpreter.js @@ -79,7 +79,13 @@ SP.AnsiInterpreter.prototype = { "\x1b\x3e": function(data) { // DECKPNM - Set keypad to numeric mode (digits intead of ESCape seq) }, - "\x1b\\\x5d\x30\x3b(?:.)*?\x07": function(data, match) { // OSC - Operating System Command (terminal title) + "\x1b\\\x5d[012]\x3b(?:.)*?\x07": function(data, match) { // OSC - Operating System Command (terminal title) + }, + + "\x1b\\[>c": function(data) { // Secondary Device Attribute request (?) + }, + + "\x1bP([^\\\\])*?\\\\": function(data) { // DCS, Device Control String }, "\x1b\x37": function(data) { // save cursor pos and char attrs