ghostty_vte 0.1.1
ghostty_vte: ^0.1.1 copied to clipboard
Dart FFI bindings for Ghostty's virtual-terminal engine (libghostty-vt). Paste-safety checks, OSC parsing, SGR attribute parsing, and keyboard event encoding — on native platforms and on the web via W [...]
0.1.1 #
- Graduated the staged
0.1.1-devVT/runtime updates as the stable0.1.1release. - Synced the bundled Ghostty checkout to the latest VT headers, regenerated
the FFI bindings, and updated the local binding generator to use the
ffigenAPI directly. - Added bundled source patch application in the build hook so Android source
builds can apply the
libghostty-vtlibc-link fix without carrying a dirty Ghostty submodule checkout. - Added high-level wrappers for the new VT APIs:
GhosttyVt.buildInfo,GhosttyVt.encodePaste*, and terminal default and effective color theme accessors on both native and web. - Added shared web-side helpers for higher-level consumers:
VtModes,VtMouseEncoderOptions, render-color resolvers,VtFormatter*Extra.all(), and a safeVtTerminal.getMode()fallback on web.
0.1.0+2 #
- Added shared web-side helpers for higher-level consumers:
VtModes,VtMouseEncoderOptions, render-color resolvers,VtFormatter*Extra.all(), and a safeVtTerminal.getMode()fallback on web. - Fixed local prebuilt resolution to ignore invalid
.prebuilt/candidates before falling back to downloaded assets or a source build. - Build-hook progress now logs to stdout and uses
Warning:for non-fatal fallback paths, avoiding falseERROR:prefixes in Flutter builds.
0.1.0+1 #
- Fixed Linux/macOS/Windows prebuilt artifact selection to only package the real dynamic library, not the similarly named static archive.
- Added dynamic-library header validation in the build hook and setup tooling so broken release artifacts fail fast instead of surfacing as runtime FFI load errors.
dart run ghostty_vte:setupnow clears stalehooks_runnercache entries so the next app build picks up the extracted prebuilt library.- Updated
ghostty_vte:setupto default to thev0.1.0+1release artifacts.
0.1.0 #
- BREAKING:
resize()now requirescellWidthPxandcellHeightPxparameters (matching ghostty's updated 5-argghostty_terminal_resize). - Updated ghostty submodule from
efb352359tobebca8466(162 upstream commits) with major API expansion. - Regenerated FFI bindings (4747 → 5484 lines).
- All 8 terminal effect callbacks via
NativeCallable.isolateLocal:onBell,onWritePty,onTitleChanged,onSize,onColorScheme,onDeviceAttributes,onEnquiry,onXtversion. - Terminal data getters:
title,pwd,mouseTracking,totalRows,scrollbackRows,widthPx,heightPx. - New types:
VtDeviceAttributes,VtColorScheme,VtSizeReportSize. - Updated zig build step from
lib-vtto-Demit-lib-vt=true.
0.0.3+1 #
- Auto-download prebuilt native libraries from GitHub Releases during
the build hook — no more manual
dart run ghostty_vte:setuprequired. - Build hook resolution order: env var → local
.prebuilt/→ auto-download (cached inoutputDirectoryShared) → build from source. - SHA256 hash verification of downloaded artifacts.
- Fixed
_findPrebuiltInProjectRoots()to also match directories withpubspec.yaml+pkgs/(monorepo/workspace roots). - Updated setup script default tag to
v0.0.3.
0.0.2 #
- Added
dart run ghostty_vte:setupcommand to download prebuilt native libraries for downstream consumers. - Build hook now finds prebuilt libraries at the consuming project's
.prebuilt/<platform>/directory, eliminating the need to modify the pub cache. - Build hook search order: env var, monorepo
.prebuilt/, project.prebuilt/.
0.0.1+1 #
- Bumped package version to
0.0.1+1.
0.0.1 #
- Initial release.
- Dart FFI bindings for Ghostty's libghostty-vt.
- Paste-safety checking via
GhosttyVt.isPasteSafe(). - OSC (Operating System Command) streaming parser.
- SGR (Select Graphic Rendition) attribute parser.
- Keyboard event encoding (legacy, xterm, Kitty protocol).
- Web support via WebAssembly.
- Prebuilt library support — skip Zig with downloaded binaries.