news
Ghostty Terminal Rewrites its GTK Build to Fix Linux Issues
Quoting: Ghostty Terminal Rewrites its GTK Build to Fix Linux Issues - OMG! Ubuntu —
The backend core is built in Zig (yes, something that isn’t Rust – shocking for 2025), but it takes a different tack to cross-platform development: native and integrated with each platform it runs on.
On macOS, Ghostty uses Swift. On Linux, it uses GTK4 with Wayland and X11 support.
Both frontends share the same core terminal engine backend, written in Zig which exports a C ABI compatible API.
However, the “legacy” GTK implementation had memory issues.
Hashimoto says there was “an entire class of bug that kept popping up in the Ghostty GTK application that could basically be summed up as: the Zig memory or the GTK memory has been freed, but not both.”
It was time to exorcise a few implementation demons.