summaryrefslogtreecommitdiff
path: root/src/config/Config.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-10-04 15:04:52 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-10-04 20:19:39 -0700
commit44496df8994640975720938fb150a67e7d111663 (patch)
tree40b3e2cd4f19d5fb37ddc3c1d1a2a36d8048bd09 /src/config/Config.zig
parent503a25653f0608b946ddfa1742130c39c5ccf575 (diff)
input: use std.Io.Writer for key encoder, new API, expose via libghostty
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.
Diffstat (limited to 'src/config/Config.zig')
-rw-r--r--src/config/Config.zig10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/config/Config.zig b/src/config/Config.zig
index bd2fe1cfb..a203a32a1 100644
--- a/src/config/Config.zig
+++ b/src/config/Config.zig
@@ -2861,7 +2861,7 @@ keybind: Keybinds = .{},
///
/// The values `left` or `right` enable this for the left or right *Option*
/// key, respectively.
-@"macos-option-as-alt": ?OptionAsAlt = null,
+@"macos-option-as-alt": ?inputpkg.OptionAsAlt = null,
/// Whether to enable the macOS window shadow. The default value is true.
/// With some window managers and window transparency settings, you may
@@ -4821,14 +4821,6 @@ pub const NonNativeFullscreen = enum(c_int) {
@"padded-notch",
};
-/// Valid values for macos-option-as-alt.
-pub const OptionAsAlt = enum {
- false,
- true,
- left,
- right,
-};
-
pub const WindowPaddingColor = enum {
background,
extend,