Core LibraryunreleasedAPI reference

Choose documentation 1

latest

Current version

latest
English

Unreleased libtmux-haskell has not been released. Its API may change during development. This site's structure and URLs may change too.

MoreLess about this notice

function libtmux-haskell

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.withProgram
Declared in
LibTmux.Server
Package
libtmux-haskell
Source
src/LibTmux/Server.hs

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 ProgramRecovery usable after this Server closes. The borrowed daemon and its other sessions remain running. See LibTmux.Program for the initial contract and explicit limits.

Recorded calls

source calls
No call edges in the Haskell model.

The 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 3

Types and data withProgram names in its declaration.

tmux command

task material

The 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 material

The C declarations in tmux that implement these commands.

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. 1 cmd_new_session_exec
  2. calls → 2 spawn_window
  3. calls → 3 spawn_pane
  4. calls → 4 window_add_pane
  5. calls → 5 window_pane_create

Guides

task material

Pages that discuss withProgram.

Esc
Search in

Type to search.

Reference previewOpen reference