Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

tmux.Session.Start

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

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)
method [source]
method [source]
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.

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.Wait stops 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

Esc

Type to search.