Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-ts latest

Window.cmd

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

Source and package
Qualified name
Window.cmd
Module
window
Declared in
Window
Package
libtmux
Source
packages/libtmux/src/window.ts
Other languages
PowerShell Julia Elixir Python Ruby Lua RustGo Java C# C++ Swift Kotlin Scala F#
cmd( command: string, args: readonly string[] = [], options?: CmdOptions, ): Promise<readonly string[]>

Description#

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");
Parameters

In other ports#

Run a tmux command addressed at a window

Equivalents of Run a tmux command addressed at a window in other languages
Language Equivalent
Python libtmux.Window.cmd
Rust window.Window.cmd
Go tmux.Window.Cmd
Java no equivalent on Window
C# no equivalent on Window
C++ no equivalent on Window
Swift no equivalent on Window

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference