Window.target
How to address this window, and the reason a window id alone will not do.
Source and package
- Qualified name
-
libtmux::Window:: target - Namespace
- libtmux
- Declared in
Window- Package
- libtmux-cxx
- Source
- include/libtmux/entities.hpp
- [[
C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.]] std::string target() const; -
Description#
The same window can be linked into several sessions, and a bare
@idleaves 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.