Skip to main content
skill CX Codex

ghostling-libghostty-terminal — Claude Code skill: terminal

A skill that walks through building a minimal terminal emulator on the libghostty-vt C library, with Raylib handling windows and rendering.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill ghostling-libghostty-terminal -a claude-code
Open on GitHub

What ghostling-libghostty-terminal does

Everything lives in one main.c: VT sequence parsing, terminal state, cursor, styles, text reflow and scrollback. The render state API is the interesting part — it hands you only the cells that changed, so you never redraw the whole grid each frame.

Windowing, rendering, PTY management, tabs and splits are outside the library. You bring those yourself. In the example Raylib draws the cells, and the pseudo-terminal comes from openpty plus fork. Keyboard and mouse events get encoded into escape sequences by libghostty-vt, Kitty keyboard protocol included.

Build needs CMake 3.19+, Ninja, a C compiler and Zig 0.15.x on PATH. Debug builds crawl because Ghostty keeps its safety assertions on, so benchmark Release or the numbers mean nothing.

What it helps with

  • parse VT sequences inside your own app
  • embed terminal emulation into an existing C project
  • draw only the changed grid cells instead of the full screen
  • set up a PTY and wire it to terminal state
  • encode key presses and mouse events into escape sequences

Example prompts for the agent

  • Show me how to create a terminal with libghostty-vt and feed it bytes from the PTY
  • Build a minimal terminal emulator with libghostty-vt and Raylib following the ghostling example
  • How do I walk the render state and draw only the dirty cells?

How to install ghostling-libghostty-terminal

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill ghostling-libghostty-terminal -a claude-code

2Manually: put the files in place

~/.claude/skills/ghostling-libghostty-terminal/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ghostling-libghostty-terminal/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ghostling-libghostty-terminal

How do I install ghostling-libghostty-terminal in Claude?

Run npx skills add reason-machines/trending-skills --skill ghostling-libghostty-terminal -a claude-code. The skill file lands at ~/.claude/skills/ghostling-libghostty-terminal/SKILL.md.

What does ghostling-libghostty-terminal do?

It steps through building a terminal emulator on libghostty-vt: initialization, writing PTY data, keyboard and mouse input, resizing, scrolling, and drawing through the render state.

What do I need before using it?

CMake 3.19+, Ninja, a C compiler and Zig 0.15.x on PATH. The library does not provide windowing or PTY handling, so you supply those.

Similar skills

All skills for Programming languages →

From the same set42

karpathy-jobs-bls-visualizer This skill scrapes Occupational Outlook Handbook data, scores occupations with an LLM and renders an interactive jobs treemap. CX Codex +1 1,300installs modly-image-to-3d This skill walks your agent through installing Modly, a desktop app that turns a photo into a 3D mesh on your own GPU — no cloud, no API keys. CX Codex +1 1,300installs git-city-3d-github-visualization A skill for building on Git City, a project that turns GitHub profiles into 3D pixel-art buildings with Next.js and Three.js. CX Codex +1 1,300installs weixin-agent-sdk This skill wires any AI backend into WeChat through the weixin-agent-sdk TypeScript framework: QR login plus a message loop. CX Codex +1 1,100installs web-access-claude-skill Lets the agent pick between search, page fetch and driving your real Chrome. Useful when a site sits behind a login or renders on JS. CX Codex +1 965installs agent-flow-visualization Installs the Agent Flow VS Code extension, which draws Claude agent orchestration as a live node graph: tool calls, branches, subagents, timings. CX Codex +1 887installs caveman-token-optimizer A skill that makes AI agents answer in caveman-speak, dropping pleasantries and filler. It cuts roughly 65% of output tokens while code and technical terms stay exact. CX Codex +1 842installs pump-analyzer-solana A static front end for watching Pump.fun token launches on Solana: a WebSocket feed, price and volume charts, and alerts on your own criteria. CX Codex +1 837installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor