Ghostty aims to avoid the usual tradeoff between terminal speed, rich features, and a native interface. Run shell programs in native macOS or GTK windows with tabs, splits, modern terminal protocols, and GPU rendering. Its terminal engine is also available as libghostty-vt for embedding in C or Zig applications.
For macOS and Linux command-line users wanting native fast terminals, and application developers embedding terminals
Ghostty separates a shared Zig terminal core from platform-specific application runtimes, allowing native macOS and GTK interfaces while retaining one emulator and rendering model. Each terminal uses dedicated read, write, and render threads; rendering uses Metal on macOS and OpenGL on Linux.
README.md (Competitive Performance and Native Platform Experiences); AGENTS.md (Directory Structure)
Terminal emulator
Maintains terminal grids, scrollback, escape-sequence behavior, selection, and terminal state.
src/terminal/
Terminal surface
Owns a PTY session and connects drawing, keyboard, mouse, and focus events.
src/Surface.zig
GPU renderer
Builds GPU-backed frames, cell buffers, images, and surface rendering resources.
src/renderer/generic.zig
Application runtimes
Provide GTK and macOS-native windows, input dispatch, and platform integration.
src/apprt/ and macos/Sources/
Generated