New advertisers: 50% off your first month with code FIRSTMONTHSee slots
reason-machines avatar

Ghostling Libghostty Terminal

Minimal C terminal emulator built on libghostty-vt, with Raylib handling windowing and rendering.

skills.sh installs
1.1K
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers the full wiring path: PTY setup, feeding bytes into the parser, keyboard and mouse encoding, resize, and dirty-cell rendering
  • Includes a single-file main.c plus a CMakeLists.txt that fetches libghostty-vt and Raylib 5.0 via FetchContent
  • Documents core API patterns for terminal creation, render-state iteration, scrollback, and cursor queries with ghostty_* calls
  • Designed for C developers embedding VT emulation in their own apps, with Zig 0.15.x and CMake 3.19+ required for the build

Install

$ npx -y skills add reason-machines/trending-skills --skill ghostling-libghostty-terminal -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Ghostling — libghostty Terminal Emulator

Skill by ara.so — Daily 2026 Skills collection.

Ghostling is a minimal viable terminal emulator built on libghostty-vt, the embeddable C library extracted from Ghostty. It uses Raylib for windowing/rendering and lives in a single C file. The project demonstrates how to wire libghostty-vt's VT parsing, terminal state, and render-state API to any 2D or GPU renderer.

What libghostty-vt Provides

  • VT sequence parsing (SIMD-optimized)
  • Terminal state: cursor, styles, text reflow, scrollback
  • Render state management (what cells changed and how to draw them)
  • Unicode / multi-codepoint grapheme handling
  • Kitty keyboard protocol, mouse tracking, focus reporting
  • Zero dependencies (not even libc) — WASM-compatible

libghostty-vt does NOT provide: windowing, rendering, PTY management, tabs, splits, or configuration.

Requirements

ToolVersion
CMake3.19+
Ninjaany
C compilerclang/gcc
Zig0.15.x (on PATH)
macOSXcode CLT or Xcode

Build & Run

# Clone
git clone https://github.com/ghostty-org/ghostling.git
cd ghostling

Details

Repository
github.com/reason-machines/trending-skills
Categories
CLI & Terminal, Go
First seen
Apr 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Ghostling Libghostty Terminal

More CLI & Terminal