Skip to main content

Module tmux

Module tmux 

Source

Structs§

PaneInfo
Info about pane .1 in each window (for state detection).
WindowInfo

Constants§

SESSION

Functions§

attach
disable_respawn
Remove the pane-died hook so Claude isn’t respawned after exit.
get_claude_pane_id
Get the pane_id (e.g. “%5”) of pane .1 (the Claude pane) in a specific window.
get_window_name
get_window_option
has_session
is_inside_tmux
kill_session
kill_window
list_pane_commands
Get the foreground command and pane ID of pane .1 in every window.
list_window_names
List window names only (for duplicate checking).
list_windows
new_session
new_window
pane_command
Get the foreground command running in the Claude pane (.1).
parse_pane_list
Parse tmux list-panes output into PaneInfo structs. Format: “window_index|pane_index|command|pane_id” per line. Only returns panes with pane_index=1 (the Claude pane).
parse_window_list
Parse tmux list-windows output into WindowInfo structs. Format: “index|name|active|path” per line.
rename_window
select_window
select_window_sidebar
send_keys
Send keys to the Claude pane (.1) of a window.
set_window_option
setup_layout
switch_client