property InVT52Mode : Boolean
Returns whether the terminal has been switched to VT52 mode.
The VT100 terminal can be switched between two modes: ANSI and VT52. The terminal will understand different escape sequences in each of the two modes. Once the terminal is in a given mode, the escape sequences for the other mode will not be understood or acted on.
The VT100 parser class tracks the escape sequences that switch the terminal from mode to mode and will set an internal flag to denote whether the parser should identify ANSI escape sequences or VT52 escape sequences. The mode switch sequences, <Esc>[?2l to switch to VT52 mode and <Esc>< to switch back to ANSI mode, are the only sequences that are tracked inside the parser, since they directly affect the operation of the parser.
The ProcessChar method will return the eDECANM result value if the parser identifies one of the escape sequences that switch terminal modes. The InVT52Mode property will have been set by the time that ProcessChar terminates and returns this value. Hence, if ProcessChar returns eDECANM, you can check the value of the InVT52Mode to find out which mode the terminal should now be in.
See also: ProcessChar