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

Go API

Go documentation

tmux.Server.Cmd

Go

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server.go
Other languages
PythonRubyLuaTypeScriptRustJava .NET C++ Swift
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.

In other ports Run a tmux command this port does not model

0 declared, 0 inherited

Esc

Type to search.