Ghostling: A Minimal Terminal Emulator Demo Built on Libghostty C API
By
bjornroberg
2mo ago· 5 min readenCode
100/100
Golden Brown
Bagelometer↗
Baker's choice. Dense with flavour, light on filler.
Score100TypenewsSentimentneutral
Summary
Ghostling is a minimal terminal emulator demo project built on the libghostty C API, showcasing the library's flexibility. It's implemented in a single C file using Raylib for windowing and rendering, demonstrating how libghostty can be embedded in various contexts. The project serves as a proof-of-concept for creating terminal applications with libghostty's C and Zig APIs.
Key quotes
· 4 pulledGhostling is a demo project meant to highlight a minimum functional terminal built on the libghostty C API in a single C file.
The example uses Raylib for windowing and rendering. It is single-threaded (although libghostty-vt supports threading) and uses a 2D graphics renderer instead of a direct GPU renderer like the primary Ghostty GUI.
This is to showcase the flexibility of libghostty and how it can be used in a variety of contexts.
Libghostty is an embeddable library extracted from Ghostty's core, exposing a C and Zig API so any application can embed correct, fas
A minimum viable terminal emulator built on top of the libghostty C API. Ex minimo, infinita nascuntur. 👻🐣 - ghostty-org/ghostling
