withProgram
Run a literal executable/argv application in a new owned session on this
daemon, then terminate its group and remove its resources. The callback may
send input and observe bounded rendered output. Cancellation of this owning
scope initiates bounded cleanup; cancellation of waitProgram
alone does not. Async exceptions retain their original class.
Source and package
- Qualified name
-
LibTmux .Server. with Program - Declared in
LibTmux.Server- Package
- libtmux-haskell
- Source
- src/LibTmux/Server.hs
- withProgram :: Server -> Program
Options -> (Program -> IO a) -> IO a -
Description
tmux 3.8 and Linux 6.9 pidfd process-group signaling are required and checked before application effects. A separately owned pin and bounded native Runtime keep
ProgramRecoveryusable after this Server closes. The borrowed daemon and its other sessions remain running. SeeLibTmux.Programfor the initial contract and explicit limits.
Recorded calls
source callsThe Haskell reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.withProgram.
Referenced declarations
type references 3Types and data withProgram names in its declaration.
- LibTmux.Program.Program data type
- LibTmux.Program.ProgramOptions data type
- LibTmux.Server.Server data type
tmux command
task materialThe tmux commands behind withProgram.
delete-buffer (when a captured buffer remains owned) kill-session (when the owned session still exists) new-session resize-window set-option wait-for display-message has-session (when an owned creation receipt was retained) tmux C API
task materialThe C declarations in tmux that implement these commands.
cmd_delete_buffer_entry cmd_set_buffer_exec cmd_kill_session_entry cmd_kill_session_exec cmd_new_session_entry cmd_new_session_exec cmd_resize_window_entry cmd_resize_window_exec cmd_set_option_entry cmd_set_option_exec cmd_wait_for_entry cmd_wait_for_exec cmd_display_message_entry cmd_display_message_exec cmd_has_session_entry Each path starts at a function a command runs, which is degree 1. The degree counts steps from there along the path, and each step is a call or a reference: degree 2 is reached from that function, degree 3 from the next, and so on.
Create a session and its first pane
- 1
cmd_new_session_exec - calls → 2
spawn_window - calls → 3
spawn_pane - calls → 4
window_add_pane - calls → 5
window_pane_create
Guides
task materialPages that discuss withProgram.
- Guides