mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Add APC_STRING since DCS_PASSTHROUGH isnt the last in ParserState anymore
This commit is contained in:
@@ -162,7 +162,8 @@ const states: number[] = [
|
||||
ParserState.DCS_PARAM,
|
||||
ParserState.DCS_IGNORE,
|
||||
ParserState.DCS_INTERMEDIATE,
|
||||
ParserState.DCS_PASSTHROUGH
|
||||
ParserState.DCS_PASSTHROUGH,
|
||||
ParserState.APC_STRING
|
||||
];
|
||||
let state: any;
|
||||
|
||||
@@ -276,7 +277,8 @@ describe('EscapeSequenceParser', () => {
|
||||
];
|
||||
const exceptions: { [key: number]: { [key: string]: any[] } } = {
|
||||
8: { '\x18': [], '\x1a': [] }, // abort OSC_STRING
|
||||
13: { '\x18': [['dcs unhook', false]], '\x1a': [['dcs unhook', false]] } // abort DCS_PASSTHROUGH
|
||||
13: { '\x18': [['dcs unhook', false]], '\x1a': [['dcs unhook', false]] }, // abort DCS_PASSTHROUGH
|
||||
14: { '\x18': [], '\x1a': [] } // abort APC_STRING
|
||||
};
|
||||
parser.reset();
|
||||
testTerminal.clear();
|
||||
|
||||
@@ -90,7 +90,7 @@ export const VT500_TRANSITION_TABLE = (function(): TransitionTable {
|
||||
EXECUTABLES.push(0x19);
|
||||
EXECUTABLES.push.apply(EXECUTABLES, r(0x1c, 0x20));
|
||||
|
||||
const states: number[] = r(ParserState.GROUND, ParserState.DCS_PASSTHROUGH + 1);
|
||||
const states: number[] = r(ParserState.GROUND, ParserState.APC_STRING + 1);
|
||||
let state: any;
|
||||
|
||||
// set default transition
|
||||
|
||||
Reference in New Issue
Block a user