
Ghostling Libghostty Terminal
If you want to embed a real terminal in your app without pulling in all of Ghostty, this shows you how to wire up libghostty-vt's C API. It's a single-file example using Raylib for rendering, and the skill walks through the actual patterns: writing PTY data into the terminal state, encoding keyboard input to escape sequences, iterating the render state API to draw only dirty cells, and handling resize with reflow. The render state iterator is the interesting part, it tells you exactly which cells changed and hands you RGB colors and Unicode codepoints ready to draw. You still own PTY setup and windowing, but you get SIMD VT parsing and proper terminal state management. Good reference if you're building a custom UI that needs a terminal widget.
- skills.sh installs
- 1.1K
- GitHub stars
- 61
- last updated
- Jul 14, 2026
Install
$ npx -y skills add aradotso/trending-skills --skill ghostling-libghostty-terminal --agent claude-codeInstalls into .claude/skills of the current project.
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
| Tool | Version |
|---|---|
| CMake | 3.19+ |
| Ninja | any |
| C compiler | clang/gcc |
| Zig | 0.15.x (on PATH) |
| macOS | Xcode CLT or Xcode |
Build & Run
# Clone
git clone https://github.com/ghostty-org/ghostling.git
cd ghostling
Sponsors
Details
- Repository
- github.com/aradotso/trending-skills
- Category
- CLI & Terminal
- First seen
- Apr 16, 2026
More from aradotso/trending-skills
All 251- 724 Office Ai Agent1K
- Claude Peers Mcp1K
- My Brain Is Full Crew1K
- Weixin Agent Sdk1K
- Dingtalk Workspace Cli941
- Polymarket Arbitrage Trading Bot927
- Awesome Phd Cv916
- Web Access Claude Skill916
- Weclaw Wechat Ai Bridge911
- Awesome Free Llm Apis904
- Cc Connect Ai Bridge884
- Filmkit Fujifilm Camera879
- Opencli Rs Web Scraper874
- Vercel Labs Emulate873
- Creationix Rx Data Store862
- Agent Flow Visualization840
- Microsoft Rust Training837
- Tg Ws Proxy Telegram Socks5837
- Wewrite Wechat Ai Publishing836
- Jkvideo Bilibili React Native835
- Ai Scanner Garak834
- Bazi Skill Chinese Astrology833
- Career Ops Job Search830
- Holyclaude Ai Workstation820