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

NotificationWatch.notification_fd

Readable when this watch has something to take or its stream has closed.

Source and package
Qualified name
libtmux::NotificationWatch::notification_fd
Namespace
libtmux
Declared in
NotificationWatch
Package
libtmux-cxx
Source
include/libtmux/notification.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]] int notification_fd() const noexcept;

Description#

Do not read it; taking all available events clears this watch's byte while the stream is open, and closure remains readable. -1 means the pipe could not be created or the watch is empty/moved from.

Esc

Type to search.

Reference previewOpen reference