summaryrefslogtreecommitdiff
path: root/include/ghostty
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-10-04 20:24:42 -0700
committerGitHub <noreply@github.com>2025-10-04 20:24:42 -0700
commit31ba6534cf16a1799b5fdc15641e4efeb483b5f7 (patch)
tree3945366cdbfec620a5f776259ab36f9d5f2602eb /include/ghostty
parentabae5422bf1fa4b281b7faf05c92716f86f49d55 (diff)
parent44496df8994640975720938fb150a67e7d111663 (diff)
input: use std.Io.Writer for key encoder, new API, expose via libghostty (#9030)
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 Zig module also gains access to key encoding APIs. The C APIs will follow another time. Converting the KeyEncoder tests was done using AI: https://ampcode.com/threads/T-9731bbdc-e0a9-41ad-9404-2b781a66ee39 Reviewed and understood.
Diffstat (limited to 'include/ghostty')
0 files changed, 0 insertions, 0 deletions