terminal: parse kitty query, push, pop keyboard flags

This commit is contained in:
Mitchell Hashimoto
2023-08-15 21:41:44 -07:00
parent c80b1bed75
commit a9d7e0eb7f
3 changed files with 75 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ const utf8proc = @import("utf8proc");
const trace = @import("tracy").trace;
const sgr = @import("sgr.zig");
const color = @import("color.zig");
const kitty = @import("kitty.zig");
const point = @import("point.zig");
const CircBuf = @import("circ_buf.zig").CircBuf;
const Selection = @import("Selection.zig");
@@ -861,6 +862,9 @@ saved_cursor: Cursor = .{},
/// The selection for this screen (if any).
selection: ?Selection = null,
/// The kitty keyboard settings.
kitty_keyboard: kitty.KeyFlagStack = .{},
/// Initialize a new screen.
pub fn init(
alloc: Allocator,