mitchellh

Go bindings for libghostty-vt.

16
1
100% credibility
Found Apr 10, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

A library for building virtual terminal emulators in Go programs, handling text input, screen rendering, colors, cursor control, and effects.

How It Works

1
🔍 Find the terminal tool

You discover a handy library that lets you create realistic computer terminal screens inside your own programs.

2
📦 Bring it into your project

You smoothly add this terminal simulator to what you're building, so it's ready to use.

3
🖥️ Set up your screen

You create a new terminal window, picking its size like columns and rows, feeling like you're opening a real command prompt.

4
Type and color text

You send in messages with bold colors, cursor moves, and special effects, and the screen updates exactly like a live terminal.

5
👁️ Peek at the screen

You read back what's on the screen as simple text, styled output, or drawing info to show users.

6
🎨 Customize looks

You tweak colors, titles, and behaviors to match your app's style perfectly.

Perfect terminal ready

Your program now runs a full, lifelike terminal that users love interacting with.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 16 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is go-libghostty?

Go bindings for libghostty-vt, a fast C virtual terminal emulator. Create terminals, feed VT bytes via io.Writer, query state like cursor position, colors, and modes, then format screens to plain text, VT sequences, or HTML. Handles scrollback, hyperlinks, and effects like bells or pty writes out of the box.

Why is it gaining traction?

Static linking with cgo simplifies deploys—no shared lib hassles, unlike dynamic github bindings. RenderState delivers dirty regions and cell iterators for efficient custom rendering, beating pure-Go emulators on perf. Modern protocol support (Kitty keyboard, tmux control) fits neatly into Go apps needing precise VT parsing.

Who should use this?

CLI tool authors embedding terminals for rich output previews. TUI devs in Go wanting low-level grid access without VTE wrappers. Game or IoT projects pairing with raylib bindings github or openhab bindings github for in-app consoles.

Verdict

Promising Go bindings for libghostty-vt at 16 stars and 1.0% credibility—API explicitly unstable, but comprehensive tests and examples make it viable for prototypes. Skip for prod until stabilized; track for compiled bindings github fans.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.