Session.FindWindowAsync
Reads one of this session's windows by identifier.
Source and package
- Module
- LibTmux
- Declared in
- Session
- Package
- LibTmux
- Source
- src/LibTmux/Session.Relations.cs
- FindWindowAsync ( id : Window
Id , cancellationToken : CancellationToken ) Task<Window?> ( target : string , cancellationToken : CancellationToken ) Task<Window?> -
Description#
A typed identifier is unique in a session that links a window at only one index; the string overload also accepts a window name, which two windows can share. When this session links the same window at more than one index, this returns whichever placement tmux lists first.
- Parameters
-
-
id ( Window
Id ) – The window identifier to look for. (forFindWindowAsync(id, cancellationToken)) -
cancellationToken ( Cancellation
Token ) – Cancels the tmux command. -
target ( string ) – A tmux window target inside this session. (for
FindWindowAsync(target, cancellationToken))
-
- Returns
-
The window, or null when this session has no such window.