Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Python API

Python documentation

libtmux.Server.list_commands

Python

View as Markdown

Module
libtmux
Declared in
Server
Package
libtmux
Source
src/libtmux/server.py
Other languages
Ruby Lua TypeScript Rust GoJava.NETC++ Swift
list_commands ( self , command_name : str | None = None ) → list[str]
method [source]
method [source]
list_commands

List tmux commands via $ tmux list-commands.

Parameters
  • command_name ( str | None ) – Filter to a specific command.

Returns

list[str] Command listing lines.

In other ports List the commands this tmux understands

Examples

>>> result = server.list_commands(command_name='send-keys')
>>> len(result) >= 1
True
const commands = await server.listCommands();
commands.includes("new-window"); // true

0 declared, 0 inherited

Esc

Type to search.