Core LibraryunreleasedAPI Reference

Choose documentation 2

latest

Current version

latest
English

Unreleased LibTmux has not been released. Its API may change during development. This site's structure and URLs may change too.

method libtmux-perl latest

Server.listings

listings(kind).

Source and package
Qualified name
LibTmux::Server::listings
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
packages/core/lib/LibTmux/Server.pm
sub listings($self, $kind)

Description#

Perform acquisition and return a fresh unblessed array reference of contextual hash records in tmux order, preserving duplicate physical identities. kind is session, window, pane, or client. An attached-client listing can be empty. Records are detached values; "snapshot" normalizes the graph. Acquisition/codec failures propagate through LibTmux::X.

my $rows = $server->listings('window');

Methods#

Parameters

tmux command#

The tmux commands behind listings.

display-message (daemon identity or target preflight) list-clients (kind is client) list-panes -a server scope, cmd_list_panes_server (kind is pane) list-sessions (kind is session) list-windows -a server scope, cmd_list_windows_exec (kind is window)

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference