core library

Classes

AltInputHandler
A TerminalInputHandler that translates alt + key events into escape sequences. For example, alt + a becomes ^[a.
Buffer
BufferLine
BufferRange
BufferRangeBlock
BufferRangeLine
BufferSegment
A BufferSegment represents a range within a line.
CascadeInputHandler
A TerminalInputHandler that chains multiple handlers together. If any handler returns a non-null value, it is returned. Otherwise, null is returned.
CascadeMouseHandler
CellAnchor
A handle to a cell in a BufferLine that can be used to track the location of the cell. Anchors are guaranteed to be stable, retaining their relative position to each other after mutations to the buffer.
CellAttr
CellColor
CellContent
CellData
CellFlags
CellOffset
ClickMouseHandler
CtrlInputHandler
A TerminalInputHandler that translates ctrl + key events into escape sequences. For example, ctrl + a becomes ^A.
CursorPosition
CursorStyle
EscapeHandler
Receives parsed terminal escape sequences from EscapeParser.
EscapeParser
EscapeParser translates control characters and escape sequences into function calls that the terminal can handle.
ExtendedEscapeHandler
Optional capability interface for handlers that also consume dynamic color setters/resets (OSC 4/10/11/12, OSC 104/110/111/112) and DEC mode snapshots (XTSAVE / XTRESTORE).
KeytabInputHandler
A TerminalInputHandler that translates key events according to a keytab file. If no keytab is provided, Keytab.defaultKeytab is used.
MotionMouseHandler
Moves: with a button held in mode 1002, and any move in mode 1003.
NamedColor
ProgramStatusRecord
One stored record of ProgramStatusRecords.
ProgramStatusRecords
The status a terminal shows, built from TerminalStatusEvents by the spec's lifetime rules. Who owns it decides what a terminal is: a Terminal, or each pane of a multiplexer.
ProgramStatusReport
A report of the Program Status Protocol, OSC 7501 ; pairs ST.
ShellCommandStatus
The last command the shell ran, as told by OSC 133.
ShellMark
OSC 133 ; A|B|C|D [; …] ST, emitted by the shell.
Terminal
Terminal is an interface to interact with command line applications. It translates escape sequences from the application into updates to the buffer and events such as onTitleChange or onBell, as well as translating user input into escape sequences that the application can understand.
TerminalColorScheme
The terminal's reported colors and dark/light appearance, used to answer OSC 4 / 10 / 11 / 12 queries, CSI ? 996 n color-scheme DSR queries, and DEC Mode 2031 change notifications.
TerminalInputHandler
TerminalInputHandler contains the logic for translating a TerminalKeyboardEvent into escape sequences that can be recognized by the terminal.
TerminalKeyboardEvent
The key event received from the keyboard, along with the state of the modifier keys and state of the terminal. Typically consumed by the TerminalInputHandler to produce a escape sequence that can be recognized by the terminal.
TerminalMouseEvent
TerminalMouseHandler
TerminalMouseModifiers
The keys held during a mouse event, which a report carries in its button code: shift 4, meta (alt) 8, control 16.
TerminalProgress
OSC 9 ; 4 ; st ; pr ST: a single progress bar, used by systemd, winget and others. TerminalProgress.parse returns TerminalProgress.removed for st = 0.
TerminalSnapshot
A snapshot of a terminal's buffer state at a point in time.
TerminalState
TerminalStatusEvent
Something a program told the terminal about its state, or that the terminal itself did to that state. Parsed by EscapeParser, emitted by Terminal.onStatus, kept by ProgramStatusRecords.
TerminalStatusReset
A full reset (RIS): every record goes. A soft reset does not emit this.
UpDownMouseHandler

Enums

MouseMode
https://terminalguide.namepad.de/mouse/
MouseReportMode
https://terminalguide.namepad.de/mouse/
OscTerminator
How an OSC sequence was terminated, so query replies can echo the same terminator that the querying program used.
ProgramBlockKind
What a blocked program waits for.
ProgramState
What a program reports about itself, from the most to the least urgent.
ShellMarkKind
Shell integration marks, OSC 133 ; X.
TerminalCursorType
TerminalKey
TerminalMouseButton
TerminalMouseButtonState
TerminalProgressState
The state of a ConEmu / Windows Terminal progress bar, OSC 9 ; 4.
TerminalTargetPlatform

Constants

defaultInputHandler → const CascadeInputHandler
The default input handler for the terminal. That is composed of a KeytabInputHandler, a CtrlInputHandler, and a AltInputHandler.
defaultMouseHandler → const CascadeMouseHandler