Repository navigation
libghostty v0.0.5
·
442 commits
to main
since this release
Breaking
- Upstream C API migration: replaced the custom
terminal-c-api.patch
with upstream Ghostty's natively exposed C headers. This is a complete
rewrite of the bindings and implementation layer. - Restructured public API: the package barrel (
libghostty.dart) has a
new export structure. Most types have been renamed or moved. - Removed types:
Line,Screen,Scrollback,TerminalOptions,
TerminalEvent,TerminalModes,Disposable,Result. - Removed sub-barrels:
input.dartandparsing.dartare removed.
Import everything fromlibghostty.dart.
Added
- Mouse encoding:
MouseEncoderandMouseEventfor encoding mouse
events into terminal escape sequences (X10, UTF-8, SGR, URxvt, SGR-Pixels). - Build info:
LibGhosttyBuildInfoexposes compile-time feature flags
(SIMD, Kitty graphics, tmux passthrough) and version info. - Terminal modes:
TerminalModeprovides typed access to DEC private
and ANSI modes with DECRPM report encoding. - Render state:
RenderStatefor efficient viewport snapshotting with
two-layer dirty tracking (global + per-row). - Grid references:
GridReffor ad-hoc cell lookups by coordinate. - Formatter:
Formatterfor serializing terminal content as plain text,
HTML, or full VT state. - Terminal effects: callback-based event model (
onWritePty,onBell,
onTitleChanged, etc.) replacing theTerminalEventstream. - Focus and size report encoding:
FocusEventEncodeand
SizeReportStyleEncodeextension types. - Programmatic ffigen: replaced declarative
ffigen.yamlwith a Dart
driver that generates three specialized output files (native FFI, enums,
WASM typed exports).
Changed
- Bumped upstream ghostty to
b7e56044d. - Generated enums replace hand-written
src/enums/directory. - Bindings reorganized into
native/,wasm/, andtypes/directories. - Implementation layer reorganized into
src/impl/withkey/,mouse/,
andterminal/subdirectories.