summaryrefslogtreecommitdiff
path: root/src/host.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.zig')
-rw-r--r--src/host.zig10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host.zig b/src/host.zig
index b6ccff34..d5f5c983 100644
--- a/src/host.zig
+++ b/src/host.zig
@@ -80,6 +80,16 @@ pub const Host = struct {
push_spawn: ?*const fn (ctx: ?*anyopaque, pane: u8, cwd: []const u8) void = null,
push_pty_write: ?*const fn (ctx: ?*anyopaque, pane: u8, bytes: []const u8) void = null,
push_pty_resize: ?*const fn (ctx: ?*anyopaque, pane: u8, cols: u16, rows: u16) void = null,
+ /// Deliver a signal to whatever is on this pane's tty — `pty/ctl`'s
+ /// `sig INT`. A PUSH because there is no answer to have: `kill(2)`
+ /// either reaches a process that is already gone or reaches one whose
+ /// disposition the sender cannot see, and a script that wants to know
+ /// whether the program died reads the pane. NULL means this host owns
+ /// no pane shells and therefore has no child to signal — the browser
+ /// and the board, where the same null already makes `push_spawn` and
+ /// `push_pty_write` silent — and the effect is dropped exactly as a
+ /// write to a pane with no pty is.
+ push_pty_signal: ?*const fn (ctx: ?*anyopaque, pane: u8, sig: pardes.PtySignal) void = null,
/// Is this pane's terminal still the prompt the host forked, or has a
/// program (vim, a pager, an agent) taken its tty? An effect cannot
/// answer it — the `execute` that asks must choose a destination inside