mirror-ghostty/example
Mitchell Hashimoto 33b05b9876
example: add C mouse encoding example
Add a new c-vt-mouse-encode example that demonstrates how to use the
mouse encoder C API. The example creates a mouse encoder configured
with SGR format and normal tracking mode, sets up terminal geometry
for pixel-to-cell coordinate mapping, and encodes a left button press
event into a terminal escape sequence.

Mirrors the structure of the existing c-vt-key-encode example. Also
adds the corresponding @example doxygen reference in vt.h.
2026-03-15 20:14:07 -07:00
..
c-vt update a bunch of required Zig versions to 0.15 2025-10-03 07:10:44 -07:00
c-vt-formatter example: add c-vt-formatter example 2026-03-14 15:12:10 -07:00
c-vt-key-encode lib-vt: expose key encoding as a C API 2025-10-05 14:40:20 -07:00
c-vt-mouse-encode example: add C mouse encoding example 2026-03-15 20:14:07 -07:00
c-vt-paste lib-vt: begin paste utilities exports starting with safe paste 2025-10-06 21:09:28 -07:00
c-vt-sgr lib-vt: C API for SGR parser (#9352) 2025-10-25 21:26:06 -07:00
wasm-key-encode lib-vt: Wasm SGR helpers and example (#9362) 2025-10-26 13:19:55 -07:00
wasm-sgr lib-vt: Wasm SGR helpers and example (#9362) 2025-10-26 13:19:55 -07:00
zig-formatter terminal: make stream processing infallible 2026-03-13 13:56:14 -07:00
zig-vt update a bunch of required Zig versions to 0.15 2025-10-03 07:10:44 -07:00
zig-vt-stream terminal: make stream processing infallible 2026-03-13 13:56:14 -07:00
.gitignore hook up logging to wasm, example uses new zig-js package 2022-12-04 13:16:54 -08:00