Window.cmd
Run a tmux command this package does not model, addressed at this window.
Source and package
-
Description#
The window's id is sent as the target; pass
targetto address something else, ornullfor a command that takes none —display-panestakes a client, so it wants{ target: null }and not this window's@n.Examples#
await window.cmd("rotate-window");
In other ports#
Run a tmux command addressed at a window
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Rust | window |
| Go | tmux |
| Java | no equivalent on Window |
| C# | no equivalent on Window |
| C++ | no equivalent on Window |
| Swift | no equivalent on Window |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.