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

Connection.take_notifications

Every outside-block event tmux has written since the last call.

Source and package
Qualified name
libtmux::Connection::take_notifications
Namespace
libtmux
Declared in
Connection
Package
libtmux-cxx
Source
include/libtmux/control.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::vector<Notification> take_notifications();

Description#

Taking drains: what comes back will not come back again. It says nothing about what happens next, so an empty result does not mean the stream has gone quiet, and a later one is new traffic rather than a repeat. Wait for the next event with wait_for_notifications() rather than polling for one.

Esc

Type to search.

Reference previewOpen reference