libtmux Reference MCP Search
On this page

window.Window.cmd

View as Markdown

Module
window
Declared in
Window
Package
@libtmux/libtmux
Source
packages/libtmux/src/window.ts
cmd ( command : : string , args : : readonly string[] = [] , options : : CmdOptions ) Promise<readonly string[]>
method [source]
method [source]
cmd

Run a tmux command this package does not model, addressed at this window.

The window's id is sent as the target; pass target to address something else, or null for a command that takes none — display-panes takes a client, so it wants { target: null } and not this window's @n.

Examples

await window.cmd("rotate-window");

0 declared, 0 inherited

Esc

Type to search.