mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix issue chjj/tty.js#59
^[[>##m and ^[[>##n are legal escape sequences, but were being parsed as if they were ^[[##m or ^[[##n. Added a test for prefix character ('>'
is the only legal one) See http://invisible-island.net/xterm/ctlseqs/ctlseqs.html, codes for CSI > P s ; P s m
If the prefix char is present, ignores the control sequence, since that code isn't implemented.
This commit is contained in:
+6
-2
@@ -1902,12 +1902,16 @@ Terminal.prototype.write = function(data) {
|
||||
|
||||
// CSI Pm m Character Attributes (SGR).
|
||||
case 'm':
|
||||
this.charAttributes(this.params);
|
||||
if (!this.prefix) {
|
||||
this.charAttributes(this.params);
|
||||
}
|
||||
break;
|
||||
|
||||
// CSI Ps n Device Status Report (DSR).
|
||||
case 'n':
|
||||
this.deviceStatus(this.params);
|
||||
if (!this.prefix) {
|
||||
this.deviceStatus(this.params);
|
||||
}
|
||||
break;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user