Overview
Clients are terminal connections to the tmux server. Each client is attached to a session to interact with it. Multiple clients can be attached to the same session.refresh-client
Alias:refresh
-t.
Return to tracking the cursor automatically. The visible portion follows the cursor.
Move the visible portion of the window down by adjustment rows (default 1).
Request the clipboard from the client using the xterm escape sequence.
Move the visible portion left by adjustment columns.
Move the visible portion right by adjustment columns.
Only update the client’s status line.
Move the visible portion up by adjustment rows.
Allow a control mode client to trigger actions on a pane. Format:
pane-id:state where state is on, off, continue, or pause.off: Stop sending output from pane to clientcontinue: Resume sending output if pausedpause: Pause the pane
Set a subscription to a format for a control mode client. Format:
name:what:formatname: Name for the subscriptionwhat: Item to subscribe to (pane ID like%0,%*for all panes, window ID like@0,@*for all windows, or empty for session)format: The format string
%subscription-changed notification. Pass only name to remove subscription.Set the width and height of a control mode client. Format:
widthxheight or window-id:widthxheight (e.g., 80x24 or @0:80x24).Set comma-separated list of client flags (see
attach-session).Provide information about a pane via a report in control mode. Format:
pane-id:report where report is an escape sequence.The target client.
Number of rows or columns to move by (default 1).
Visible Portion Control
The visible position is a property of the client. When a window is larger than the client, only a portion is visible. Use-U, -D, -L, -R to pan, and -c to return to following the cursor.
Examples
list-clients
Alias:lsc
Reverse the sort order.
Specify the format of each line. Available client format variables:
#{client_name}: Name of client#{client_tty}: Pseudo terminal of client#{client_width},#{client_height}: Client dimensions#{client_created}: Time client was created#{client_activity}: Time of last activity#{client_session}: Name of attached session#{client_prefix}: 1 if prefix key has been pressed#{client_readonly}: 1 if client is read-only
Only show clients for which the filter is true.
Specify sort order:
name, size, creation (time), or activity (time).List only clients connected to the target session.
Examples
lock-client
Alias:lockc
lock-command option.
The target client to lock.
Examples
suspend-client
Alias:suspendc
The target client to suspend.
Examples
display-message
Alias:display
List the format variables and their values.
Forward any input read from stdin to the empty pane given by target-pane.
Ignore keys pressed while the message is displayed.
Print the message to stdout instead of displaying in status line.
Print verbose logging as the format is parsed.
The target client.
Duration in milliseconds for which the message is shown. Default uses the
display-time option.Format string. Overrides the message argument.
The target pane for context.
Message to display. Can include format variables.
Examples
show-messages
Alias:showmsgs
Show jobs instead of messages.
Show debugging information about the format tree.
The target client.
Examples
display-menu
Alias:menu
Do not close the menu after an item is selected.
The target client.
The target pane.
Title for the menu.
Horizontal position. Can be a number,
C for center, R for right, P for mouse position, M for mouse menu position, W for window position, or S for status line position.Vertical position. Same options as
-x for vertical positioning.Menu item name (displayed text). Use empty string for separator.
Key shortcut for the item. Use empty string for no shortcut.
Command to execute when item is selected. Use empty string for separator.
Examples
display-popup
Alias:popup
Close any popup already open.
Close the popup automatically when the shell command exits.
The target client.
Starting directory for the shell command.
Height of the popup. Can be a number or percentage (e.g.,
50%).The target pane.
Title for the popup.
Width of the popup. Can be a number or percentage.
Horizontal position. Same options as display-menu
-x.Vertical position. Same options as display-menu
-y.Shell command to run in the popup.
Examples
choose-client
Start without the preview.
Reverse the sort order.
Zoom the pane.
Format for each item in the list.
Initial filter (as a format expression).
Format for each shortcut key.
Initial sort order:
name, size, creation, or activity.Target pane.
After a client is chosen,
%% is replaced by the client name and the result is executed as a command.Examples
Control Mode
Control mode (tmux -C) is a special mode where tmux acts as a background daemon and communicates with a client program via a simple text protocol.
In control mode:
- Output is sent as notifications
- Input is parsed as commands
- No terminal UI is displayed
- Useful for integrating tmux with other programs
Control Mode Client Flags
no-output: Client does not receive pane outputpause-after=seconds: Pause output when behindread-only: Client is read-onlywait-exit: Wait for empty line before exiting
Control Mode Notifications
%output: Pane output%layout-change: Window layout changed%session-changed: Session changed%window-add,%window-close: Window events%subscription-changed: Format subscription changed