Repository navigation
·
12 commits
to main
since this release
Breaking
- Scrollback limits: replace
TerminalConfig.scrollbackLimitwith
scrollbackMaxBytesand optionalscrollbackMaxLines. The default byte
limit changes from 10,000,000 to 10,000. Set
scrollbackMaxBytes: 10_000_000to preserve the previous budget, or use
null for no byte limit. - Controller extensibility:
TerminalControlleris sealed. Create sessions
through its factories and use composition instead of custom subclasses or
implementations. - Focus and keyboard control: controller focus methods, keyboard methods,
andkeyboardStateare removed. Pass aFocusNodetoTerminalViewfor
imperative focus control and configure soft-keyboard access with
TerminalView.showKeyboard. - Controller contract:
TerminalControllersupports one attached
TerminalView. A second concurrent attachment throwsStateError. - Callback configuration:
onBell,onOutput,onPwdChanged,onResize,
andonTitleChangedare setter-only. Retain callback references if their
identity is needed elsewhere. - Clipboard payloads: re-exported
ClipboardContentandClipboardWrite
are immutable classes. Replace record literals with their constructors and
use named fields. - Removed public types:
KeyboardStateandTerminalScrollPositionare no
longer exported. UseFocusNode,TerminalView.showKeyboard, and the
standardScrollPositioninterface.
Added
- Terminal snapshots:
TerminalController.snapshot()captures libghostty
state, andTerminalController.fromSnapshot()restores it progressively or
synchronously.restorationexposes lifecycle state, while the
restoredfuture reports completion and late errors. Continuation tracking
preserves incomplete VT and UTF-8 input. Restoration can compress history,
preserve snapshot colors, and defer resizing while scrollback loads. - Terminal search:
TerminalController.searchmanages incremental searches,
match navigation, scroll policy, and automatic viewport highlighting.
TerminalTheme.searchstyles ordinary and selected matches, while
TerminalView.overlayBuilderandTerminalViewGeometrysupport custom,
cell-aware search interfaces. - Touch selection handles: Android and iOS long-press selections expose
draggable platform-styled endpoint handles with adaptive magnifiers and edge
autoscroll. Toggling the configured block-selection modifier while dragging
switches between normal and rectangular selection. Configure or disable
magnification throughTerminalGestureSettings. - Clipboard reads:
TerminalController.onClipboardReadforwards
MIME-aware terminal requests for application-controlled clipboard access. - Session events: callbacks expose desktop notifications, progress,
program status, semantic prompts, full resets, and unknown sequences. - Terminal metadata: controllers expose memory usage and requested mouse
shapes; views reflect terminal-requested pointer shapes. - Prompt navigation:
TerminalController.scrollToPrompt()navigates
between shell integration prompts. - Resource controls: applications can limit retained snapshot continuation
bytes, captured unknown sequences, and clipboard-write payloads. - Terminal compatibility: disable restoring scrollback rows during resize
for backends that keep their own screen buffer, or opt into screen checksum
replies for terminal programs that need them.
Changed
- Synchronized output: views hold complete frames during terminal-driven
synchronized updates, including cursor and image state. A timeout releases
abandoned holds, and user interactions release a hold when needed. - Rendering memory: font and glyph caches have bounded memory use across
terminal views. - Resize lifecycle:
onResizereports only afterTerminalViewcommits a
measured grid; assigning it later immediately reports that grid.
Cell-pixel-only changes skip the callback, and in-band output is emitted
first.
Fixed
- Ctrl+Space: the chord encodes as NUL in legacy mode and as a Kitty
CSI u chord, allowing applications such as Neovim to receive it. - Cursor rendering: the cursor and composing text no longer appear at an
invalid viewport position. The cursor follows the terminal's reported style. - Text input recovery: keyboard input resumes after another widget takes
the platform text input connection, including during IME composition. - Keyboard and IME input: AltGr text no longer sends unintended Control or
Alt input. Kitty keyboard reports include Caps Lock and Num Lock, and IME
newline and deletion events no longer duplicate or suppress input. - Pointer input: mouse and stylus button changes remain accurate during a
gesture, stylus drags select text, and a gesture no longer switches between
selection and terminal mouse reporting. - View updates: replacing a controller preserves terminal focus, and
detached controllers can be attached again. ChangingTerminalView.fontData
updates text sizing. Selection changes no longer cause notifications during
widget builds. - Terminal glyph rendering: Nerd Font symbols use common fallback families,
fit their cell without distortion, and preserve adjacent spacing. Operator
ligatures remain stable across complete runs, and glyphs that extend beyond
their cells retain their visible overflow. - Kitty graphics: images no longer disappear or briefly show mismatched
pixels and dimensions during replacement. Image placements stay aligned
after layout changes and resizing.