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.

struct libtmux-cxx latest

ParsedNotification

A notification's arguments, as views into the notification it was read from.

Source and package
Qualified name
libtmux::ParsedNotification
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/notification.hpp
struct libtmux::ParsedNotification

Description#

tmux types its arguments by prefix — $0 a session, @1 a window, %2 a pane — so each lands in the field it belongs to and the others stay empty. payload is the pane bytes of an output notification, already unescaped; it is empty for every other kind.

NotificationKind::subscription_changed is the one kind whose first argument is never an id: it is the subscription's own name (chosen by whoever called refresh-client -B), so text holds that name and the changed value together — "<name> : <value>" — once session/window/pane have taken the ids around them.

Everything here borrows. The notification must outlive it, which is why there is no overload taking a temporary.

Members8#

Esc

Type to search.

Reference previewOpen reference