method libtmux-dotnet latest
ControlModeSubscriptions.SubscribeSessionAsync
Subscribes to a session-scoped format changing.
Source and package
- Module
- LibTmux
- Declared in
- ControlModeSubscriptions
- Package
- LibTmux
- Source
- src/LibTmux/ControlMode/ControlModeSubscriptions.cs
- SubscribeSessionAsync ( session : IControl
Mode , name : string , format : string , cancellationToken : CancellationSession Token ) Task<IReadOnly <string>>List -
- Parameters
-
-
session ( IControl
Mode ) – The control client to subscribe on.Session -
name ( string ) – The subscription's name, echoed back as the first word of a
%subscription-changednotification for it. -
format ( string ) – The tmux format to watch, without
#{}. -
cancellationToken ( Cancellation
Token ) – Cancels the tmux command.
-
- Returns
-
The lines tmux printed answering the subscribe command.