libtmux Reference MCP Search
On this page

tmux.Server.Cmd

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server.go
Cmd ( ctx : context.Context , args : string ) (CommandResult, error)
method [source]
method [source]
Cmd

Cmd executes raw tmux arguments and returns caller-owned result slices. A completed nonzero exit remains a result; validation and transport failures return errors. Cancellation cannot prove whether a mutation reached tmux.

An argument that is exactly ";" separates two tmux commands, so one call can submit a command list. tmux runs a list until a command fails and drops the rest, and answers with one merged stdout, so a caller that needs to know which command produced which line submits them separately. A list means the same thing through either execution binding.

Only a standalone ";" separates commands. Other semicolons follow the selected binding's parsing; typed operations keep values literal across bindings.

0 declared, 0 inherited

Esc

Type to search.