libtmux Reference MCP Search
On this page

libtmux::Window::target

View as Markdown

Module
libtmux
Declared in
Window
Package
libtmux-cxx
Source
include/libtmux/entities.hpp
target ( ) std::string
methodreadonly [source]
methodreadonly [source]
target

How to address this window, and the reason a window id alone will not do.

The same window can be linked into several sessions, and a bare @id leaves tmux to pick one of those homes: the index it reports, the session it names, and the link a move or a kill lands on then depend on a choice the caller did not make. Qualifying by the session this window was listed from names one link.

Prefer checked_target() ; this source-compatible form returns an empty string when psmux cannot bind a reusable target without a stale race.

0 declared, 0 inherited

Esc

Type to search.