libtmux Reference MCP Search
On this page

window.Window

View as Markdown

Module
window
Package
libtmux
Source
crates/libtmux/src/window.rs
struct window.Window
structoverload [source]
structoverload [source]
struct window.Window

Windows compare by server endpoint, session, index, and window id.

Equality follows the link, not the window, because a linked window occupies a genuinely different position in each session that holds it. Compare Window::id directly to ask whether two handles name the same underlying window.

39 declared, 0 inherited

Members

  • cmd method Run a raw tmux command against this window.
  • display method Show a message on the clients viewing this window.
  • format method Expand a tmux format string in this window's context.
  • from_env method Find the window this process is running in.
  • from_env_value method Find a window from an explicit TMUX_PANE value.
  • has_activity method
  • has_bell method
  • height method
  • id method
  • index method
  • is_active method
  • is_linked method
  • is_zoomed method
  • kill method Kill the window, closing it in every session that links it.
  • last_activity method
  • layout method
  • link_to method Link this window into another session, so both hold the same window.
  • move_to method Move this window to an index, possibly in another session.
  • name method
  • new method Build a handle from a hydrated projection.
  • next_layout method Move to the next named layout, and return the window.
  • pane_count method
  • previous_layout method Move to the previous named layout, and return the window.
  • refresh method Replace this handle's snapshot with the window's current state.
  • refreshed method Return a new handle holding the window's current state.
  • rename method Rename the window and update this handle.
  • resize method Resize the window to an exact size in cells.
  • resize_by method Resize the window to an exact size in cells.
  • respawn method Restart the window's command in place.
  • rotate method Move the window's panes round one position, keeping the layout.
  • select method Make this window active in the session it was reached through.
  • select_layout method Set the window's pane layout.
  • server_identity method Return the identity of the server this window belongs to.
  • session_id method
  • split method Split this window and return the new pane.
  • swap_with method Swap this window's position with another.
  • unlink method Remove this session's link to the window, leaving other links intact.
  • width method
  • with_pane method Create a pane, run an operation with it, then kill it.
Esc

Type to search.