TerminalModeBits

Public contract for the packed terminal mode bit layout.

The constants in this object define the bits inside snapshots returned by TerminalInputState.getInputModeBits. Core owns the values, while input and rendering code may read them through the helper methods without depending on core internals.

Properties

Link copied to clipboard
const val AMBIGUOUS_WIDE: Long

Ambiguous-width Unicode policy flag.

Link copied to clipboard

Application cursor keys mode flag (DECCKM).

Link copied to clipboard

Application keypad mode flag (DECNKM).

Link copied to clipboard
const val AUTO_WRAP: Long

Auto-wrap mode flag (DECAWM).

Link copied to clipboard
const val BELL_IS_URGENT: Long

Bell is urgent mode flag (?1042).

Link copied to clipboard

Bracketed paste reporting flag.

Link copied to clipboard

Cursor blinking presentation flag.

Link copied to clipboard
const val CURSOR_VISIBLE: Long

Cursor visibility presentation flag.

Link copied to clipboard

Focus in/out reporting flag.

Link copied to clipboard

Bit mask for the packed format-other-keys mode field.

Link copied to clipboard

Starting bit for the packed format-other-keys mode field.

Link copied to clipboard

Width in bits of the packed format-other-keys mode field.

Link copied to clipboard
const val INSERT_MODE: Long

Insert/replace mode flag (IRM).

Link copied to clipboard

Bit mask for the packed Kitty keyboard progressive-enhancement flags.

Link copied to clipboard

Starting bit for the packed Kitty keyboard progressive-enhancement flags.

Link copied to clipboard

Width in bits of the packed Kitty keyboard progressive-enhancement flags.

Link copied to clipboard

Left/right margin mode flag (DECLRMM).

Link copied to clipboard

Bit mask for the packed modify-other-keys mode field.

Link copied to clipboard

Starting bit for the packed modify-other-keys mode field.

Link copied to clipboard

Width in bits of the packed modify-other-keys mode field.

Link copied to clipboard

Bit mask for the packed mouse encoding mode field.

Link copied to clipboard
const val MOUSE_ENCODING_SHIFT: Int = 24

Starting bit for the packed mouse encoding mode field.

Link copied to clipboard
const val MOUSE_ENCODING_WIDTH: Int = 3

Width in bits of the packed mouse encoding mode field.

Link copied to clipboard

Bit mask for the packed mouse tracking mode field.

Link copied to clipboard
const val MOUSE_TRACKING_SHIFT: Int = 20

Starting bit for the packed mouse tracking mode field.

Link copied to clipboard
const val MOUSE_TRACKING_WIDTH: Int = 4

Width in bits of the packed mouse tracking mode field.

Link copied to clipboard
const val NEW_LINE_MODE: Long

New-line mode flag (LNM).

Link copied to clipboard
const val ORIGIN_MODE: Long

Origin mode flag (DECOM).

Link copied to clipboard
const val POP_ON_BELL: Long

Pop on bell mode flag (?1043).

Link copied to clipboard
const val REVERSE_VIDEO: Long

Reverse-video presentation flag (DECSCNM).

Link copied to clipboard

Synchronized output mode flag (?2026).

Functions

Link copied to clipboard
fun hasFlag(bits: Long, flag: Long): Boolean

Returns true when flag is set in bits.

Link copied to clipboard
fun packedValue(bits: Long, mask: Long, shift: Int): Int

Extracts a packed integer field from bits.

Link copied to clipboard
fun withPackedValue(bits: Long, mask: Long, shift: Int, value: Int): Long

Returns bits with one packed integer field replaced by value.