Session.Start
Start runs command in a new window of this session and returns once it is under way, without waiting for it to finish. The returned Running reports the pane it runs in and blocks on demand: Running.Wait waits for the exit status and screen Session.Run would have returned, and Running.Kill stops the command. Options are exactly Run's.
Source and package
- Qualified name
-
tmux.Session. Start - Package
- tmux
- Declared in
Session- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/session_run.go
-
Description#
Before tmux 3.7, Start attempts to install an output pipe running cat unless the pane already has a pipe; a failed attempt only forfeits that compatibility help.
Running.Waitstops a pipe Start installed once the outcome is read, whether or not Keep leaves the window itself in place.If Wait is never called, the window Start created is never removed.
A session bound to a
Connectioncan Start:Running.Waitholds a control client of its own, not a lane, soRunning.Killand every other command stay available while it waits.- Parameters
-
tmux command#
The tmux commands behind Start.
tmux C API#
The C declarations in tmux that implement these commands.