mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #5618 from xtermjs/anthonykim1/lastState1
Add STATE_LENGTH to equal last state + 1
This commit is contained in:
@@ -21,7 +21,9 @@ export const enum ParserState {
|
||||
DCS_IGNORE = 11,
|
||||
DCS_INTERMEDIATE = 12,
|
||||
DCS_PASSTHROUGH = 13,
|
||||
APC_STRING = 14
|
||||
APC_STRING = 14,
|
||||
// Number of states, meaning LAST_STATE + 1.
|
||||
STATE_LENGTH = 15
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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.APC_STRING + 1);
|
||||
const states: number[] = r(ParserState.GROUND, ParserState.STATE_LENGTH);
|
||||
let state: any;
|
||||
|
||||
// set default transition
|
||||
|
||||
Reference in New Issue
Block a user