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

Pane.cmd

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

Source and package
Qualified name
Pane.cmd
Module
pane
Declared in
Pane
Package
libtmux
Source
packages/libtmux/src/pane.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 pane's id is sent as the target; pass target to address something else, or null for a command that takes none.

Examples#

await pane.cmd("clock-mode");
Parameters

In other ports#

Run a tmux command addressed at a pane

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

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

Esc

Type to search.

Reference previewOpen reference