libghostty-vt

MoonBit bindings for Ghostty's libghostty-vt virtual terminal emulator library.

ghostty
terminal
vt
emulator
bindings
ffi
moon add tonyfettes/libghostty-vt@0.1.2
Download zip
Version
0.1.2
License
Apache-2.0
Last updated
3 months ago
Downloads
55
README

#libghostty-vt

MoonBit bindings for Ghostty's libghostty-vt — the virtual terminal emulator library that powers Ghostty's terminal state machine, parser, and renderer data model.

These bindings let you embed a production-grade VT engine into MoonBit applications (e.g. custom terminal UIs for desktop or mobile) while controlling windowing and rendering yourself.

#Status

Early / unstable (v0.1.0). The upstream C API itself is marked WIP; expect breaking changes.

#Building

The prebuild script (build.js, wired via --moonbit-unstable-prebuild) builds vendor/ghostty/zig-out/lib/libghostty-vt.a via zig build -Demit-lib-vt. Linking requires -lc++ on macOS for the bundled Highway SIMD symbols.

#License

Apache-2.0 — see LICENSE. The upstream Ghostty project is MIT-licensed (see vendor/ghostty/LICENSE).