summaryrefslogtreecommitdiff
path: root/src/gui/gui.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.zig')
-rw-r--r--src/gui/gui.zig5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index 415b21e8..1d5d3c05 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -3756,6 +3756,10 @@ const Shell = struct {
};
}
+ fn closePaneShell(ctx: ?*anyopaque, pane: u8) void {
+ shellOf(ctx).closePty(pane);
+ }
+
fn closePty(s: *Shell, pane: u8) void {
const pt = if (s.ptys[pane]) |*pt| pt else return;
if (pt.fd < 0) return;
@@ -3831,6 +3835,7 @@ const Shell = struct {
.pty_write = ptyWrite,
.pty_resize = ptyResize,
.pty_signal = ptySignal,
+ .close_pty = closePaneShell,
.tty_taken = ttyTaken,
.write_file = writeFile,
.write_dump = writeDump,