8000 GitHub - akazwz/vtcore: Pure Go terminal core: parsing, screen state, and snapshots · GitHub
[go: up one dir, main page]

Skip to content
akazwzPublic

About

Pure Go terminal core: parsing, screen state, and snapshots

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commi 10BC8 t message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vtcore

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.

Origin

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.

Scope

  • 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.

About

Pure Go terminal core: parsing, screen state, and snapshots

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0