Files
ghostty/example/c-vt-static
Riccardo Mazzarini 1fe1b2d23c build: fix static libghostty-vt linking on Windows
This PR fixes static linking for libghostty-vt on Windows by propagating
a couple of missing dependencies (discovered while running Neovim's Zig
build, see
https://github.com/neovim/neovim/actions/runs/30130848061/job/89604799965?pr=39773).
2026-07-26 15:36:54 -07:00
..

Example: ghostty-vt Static Linking

This contains a simple example of how to statically link the ghostty-vt C library with a C program using the ghostty-vt-static artifact. It is otherwise identical to the c-vt example.

This uses a build.zig and Zig to build the C program so that we can reuse a lot of our build logic and depend directly on our source tree, but Ghostty emits a standard C library that can be used with any C tooling.

Usage

Run the program:

zig build run