A pure Go terminal core. It interprets terminal output and keeps the screen state, scrollback, and modes, and can snapshot and restore them.
Status: Core libghostty-vt functionality is ported to pure Go with public
APIs for writing, resizing, reading the screen/scrollbar, incremental render
state, replies and events (including clipboard and drag-and-drop), key/mouse/
paste/focus input, selection and gestures, incremental search, binary snapshots
(one-shot and incremental), Kitty graphics, and custom glyphs.
Differential tests against the pinned official libghostty-vt live in the
separate oracle/ module so the main module remains pure Go without cgo.
vtcore is a Go port of libghostty-vt from
Ghostty, pinned to commit
b1341f00af6736b0da3c204acfdee27f9ab80a67. It is not affiliated with or endorsed by the Ghostty project.
Ghostty's MIT license is in third_party/ghostty/LICENSE.
The X11 color table is under the license in third_party/x11-rgb/COPYING.
The blending of image pixels is ported from Wuffs, whose license is in third_party/wuffs/LICENSE-MIT.
- Control sequence parsing
- Screen, scrollback, and reflow
- Unicode width and grapheme handling
- Modes and replies to terminal queries
- Snapshots and formatting
- Search, selection, images, and input encoding
Opening terminals, drawing, sessions, and networking are out of scope.