tmux.Session.Start
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Declared in
- Session
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/session_run.go
- Start ( ctx : context.Context , command : string , options : RunOptions ) (running *Running, err error)
-
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
Runningreports the pane it runs in and blocks on demand:Running.Waitwaits for the exit status and screenSession.Runwould have returned, andRunning.Killstops the command. Options are exactly Run's.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.
0 declared, 0 inherited