Server.cmd
Run a tmux command this package does not model.
Source and package
-
Description#
tmux has many more commands than any wrapper types. Rather than leaving a caller to build their own subprocess — and reproduce the socket, the environment, the deadline, and the error handling — this runs one through the same path every other operation uses.
Failure raises
TmuxCommandErrorlike any other command, carrying tmux's own stderr.Examples#
await server.cmd("list-keys", ["-T", "copy-mode"]);
Guides#
Pages that discuss cmd.
In other ports#
Run a tmux command this port does not model
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Elixir | Lib Runs one trusted Command without attaching a client and returns bounded output with exit evidence. |
| Rust | server |
| Go | tmux |
| Java | io |
| C# | no equivalent on Server |
| C++ | no equivalent on Server |
| Swift | no equivalent on Server |
No equivalent is recorded in PowerShell, Julia, Kotlin, Scala or F#.