mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-15 03:52:39 +00:00
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.
9 lines
194 B
Zig
9 lines
194 B
Zig
/// Determines the macOS option key behavior. See the config
|
|
/// `macos-option-as-alt` for a lot more details.
|
|
pub const OptionAsAlt = enum(c_int) {
|
|
false,
|
|
true,
|
|
left,
|
|
right,
|
|
};
|