core: hook up all the inspector activation state and such

This commit is contained in:
Mitchell Hashimoto
2023-10-20 11:25:04 -07:00
parent dcb6eef9c4
commit 7a30d1080e
5 changed files with 87 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
const std = @import("std");
const Allocator = std.mem.Allocator;
const Inspector = @import("../Inspector.zig");
const terminal = @import("../terminal/main.zig");
const renderer = @import("../renderer.zig");
@@ -14,6 +15,10 @@ mutex: *std.Thread.Mutex,
/// The terminal data.
terminal: *terminal.Terminal,
/// The terminal inspector, if any. This will be null while the inspector
/// is not active and will be set when it is active.
inspector: ?*Inspector = null,
/// Dead key state. This will render the current dead key preedit text
/// over the cursor. This currently only ever renders a single codepoint.
/// Preedit can in theory be multiple codepoints long but that is left as