summaryrefslogtreecommitdiff
path: root/src/input/key_encode.zig
AgeCommit message (Collapse)Author
2025-10-05lib-vt: expose key encoding as a C APIMitchell Hashimoto
2025-10-04input: use std.Io.Writer for key encoder, new API, expose via libghosttyMitchell Hashimoto
This modernizes `KeyEncoder` to a new `std.Io.Writer`-based API. Additionally, instead of a single struct, it is now an `encode` function that takes a series of more focused options. This is more idiomatic Zig while also making it easier to expose via libghostty-vt. libghostty-vt also gains access to key encoding APIs.