summaryrefslogtreecommitdiff
path: root/src/macos.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/macos.zig')
-rw-r--r--src/macos.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macos.zig b/src/macos.zig
index ebe8193b..62858887 100644
--- a/src/macos.zig
+++ b/src/macos.zig
@@ -2312,6 +2312,7 @@ const vtable: pardes.Host.VTable = .{
.pty_signal = ptySignal,
.close_pty = closePty,
.tty_taken = ttyTaken,
+ .kill_job = killJob,
.write_file = writeFile,
.write_dump = writeDump,
.watch_file = watchFile,
@@ -2435,6 +2436,12 @@ fn ttyTaken(ctx: ?*anyopaque, pane: u8) bool {
return host_io.ttyTaken(pt.pid, pt.file.handle);
}
+fn killJob(ctx: ?*anyopaque, pane: u8) bool {
+ const st = hostState(ctx);
+ const pt = st.ptys[pane] orelse return false;
+ return host_io.killJob(pt.pid, pt.file.handle);
+}
+
fn writeFile(ctx: ?*anyopaque, pane: u8, path: []const u8, bytes: []const u8) void {
const st = hostState(ctx);
filesystem.write(st.core, path, bytes) catch |err|