Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-go latest

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

A session bound to a Connection can Start: Running.Wait holds a control client of its own, not a lane, so Running.Kill and every other command stay available while it waits.

tmux command#

The tmux commands behind Start.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference