Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-cxx latest

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.Language documentation]] std::string target() const;

Description#

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.

Esc

Type to search.

Reference previewOpen reference