Session.cmd
Run a tmux command this package does not model, addressed at this session.
Source and package
-
Description#
The first argument is the tmux command name and nothing else — this does not parse a command line, so arguments go in the array:
The session's id is sent as the target; pass
targetto address something else, ornullfor a command that takes none.Examples#
await session.cmd("rename-session", ["--", "renamed"]);
In other ports#
Run a tmux command addressed at a session
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Rust | session |
| Go | tmux |
| Java | no equivalent on Session |
| C# | no equivalent on Session |
| C++ | no equivalent on Session |
| Swift | no equivalent on Session |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.