ParsedNotification
A notification's arguments, as views into the notification it was read from.
Source and package
- Qualified name
-
libtmux::Parsed Notification - Namespace
- libtmux
- Package
- libtmux-cxx
- Source
- include/libtmux/notification.hpp
-
Description#
tmux types its arguments by prefix —
$0a session,@1a window,%2a pane — so each lands in the field it belongs to and the others stay empty.payloadis the pane bytes of an output notification, already unescaped; it is empty for every other kind.NotificationKind::subscription_changedis the one kind whose first argument is never an id: it is the subscription's own name (chosen by whoever calledrefresh-client -B), sotextholds that name and the changed value together —"<name> : <value>"— oncesession/window/panehave taken the ids around them.Everything here borrows. The notification must outlive it, which is why there is no overload taking a temporary.
Members8#
- age: std::
optional <std::uint64 > attribute Milliseconds this output was behind when tmux wrote it._t - kind: Notification
Kind attribute - name: std::
string attribute_view - pane: std::
string attribute_view - payload: std::
span <const std::byte > attribute - session: std::
string attribute_view - text: std::
string attribute_view - window: std::
string attribute_view