getModeSnapshot
Returns an immutable snapshot of the published TerminalModeSnapshot fields.
Additional xterm key resources are read through TerminalInputState.keyModifierOption and TerminalInputState.keyFormatOption from getInputModeBits.
Return
A detached TerminalModeSnapshot of the commonly used mode fields.