diff options
| author | t <t@tjp.lol> | 2026-06-09 10:13:26 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-06-09 10:13:39 -0600 |
| commit | 3d535f8360f35132faaeef093d61cf377be5e9cc (patch) | |
| tree | 8e91c0a82531f3723b6b2e23c1306b30da936000 /src/tui_app.zig | |
| parent | 97b10466d83d488ad2cb9e084159a445af74c845 (diff) | |
finalize cursor on quit
Diffstat (limited to 'src/tui_app.zig')
| -rw-r--r-- | src/tui_app.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui_app.zig b/src/tui_app.zig index f2a205b..c99985b 100644 --- a/src/tui_app.zig +++ b/src/tui_app.zig @@ -1040,6 +1040,10 @@ pub fn runLoop(app: *App, term: *Terminal, opts: RunOptions) !void { // iff the terminal turns out not to support Kitty. term.writeAll(input_mod.negotiate_query); defer { + app.engine.finalizeCursor() catch {}; + app.flushSink(); + } + defer { input_mod.setKittyActive(false); if (hs.mok_enabled) term.writeAll(input_mod.disable_modify_other_keys); term.writeAll(input_mod.negotiate_teardown); |
