TerminalModeSnapshot

data class TerminalModeSnapshot(val isInsertMode: Boolean, val isAutoWrap: Boolean, val isApplicationCursorKeys: Boolean, val isApplicationKeypad: Boolean, val isOriginMode: Boolean, val isNewLineMode: Boolean, val isLeftRightMarginMode: Boolean, val isReverseVideo: Boolean, val isCursorVisible: Boolean, val isCursorBlinking: Boolean, val isBracketedPasteEnabled: Boolean, val isFocusReportingEnabled: Boolean, val treatAmbiguousAsWide: Boolean, val mouseTrackingMode: MouseTrackingMode, val mouseEncodingMode: MouseEncodingMode, val modifyOtherKeysMode: Int, val formatOtherKeysMode: Int, val kittyKeyboardFlags: Int, val isSynchronizedOutput: Boolean, val isBellIsUrgent: Boolean, val isPopOnBell: Boolean)

Immutable snapshot of the terminal's durable mode state.

This is the handoff contract for parser, input, and UI layers that need to read mode flags without mutating the core's internal TerminalModes instance.

Constructors

Link copied to clipboard
constructor(isInsertMode: Boolean, isAutoWrap: Boolean, isApplicationCursorKeys: Boolean, isApplicationKeypad: Boolean, isOriginMode: Boolean, isNewLineMode: Boolean, isLeftRightMarginMode: Boolean, isReverseVideo: Boolean, isCursorVisible: Boolean, isCursorBlinking: Boolean, isBracketedPasteEnabled: Boolean, isFocusReportingEnabled: Boolean, treatAmbiguousAsWide: Boolean, mouseTrackingMode: MouseTrackingMode, mouseEncodingMode: MouseEncodingMode, modifyOtherKeysMode: Int, formatOtherKeysMode: Int, kittyKeyboardFlags: Int, isSynchronizedOutput: Boolean, isBellIsUrgent: Boolean, isPopOnBell: Boolean)

Properties

Link copied to clipboard

The active format-other-keys wire format.

Link copied to clipboard

true when application cursor keys mode (DECCKM) is active.

Link copied to clipboard

true when application keypad mode (DECNKM) is active.

Link copied to clipboard

true when DECAWM auto-wrap mode is active.

Link copied to clipboard

true when urgent bell mode (?1042) is active.

Link copied to clipboard

true when bracketed paste mode (?2004) is enabled.

Link copied to clipboard

true when the cursor blink presentation is active.

Link copied to clipboard

true when the cursor presentation is visible (DECTCEM).

Link copied to clipboard

true when focus in/out reporting (?1004) is enabled.

Link copied to clipboard

true when insert mode (IRM) is active, false for replace mode.

Link copied to clipboard

true when left/right margins (DECLRMM) are active.

Link copied to clipboard

true when new-line mode (LNM) is active.

Link copied to clipboard

true when origin mode (DECOM) is active.

Link copied to clipboard

true when pop on bell mode (?1043) is active.

Link copied to clipboard

true when reverse-video presentation (DECSCNM) is active.

Link copied to clipboard

true when synchronized output mode (?2026) is active.

Link copied to clipboard

Active Kitty keyboard progressive-enhancement flags.

Link copied to clipboard

The active modify-other-keys reporting level.

Link copied to clipboard

The active mouse report encoding mode.

Link copied to clipboard

The active mouse tracking mode.

Link copied to clipboard

true when East Asian Ambiguous characters are measured as wide (2 cells).