libtmux Reference MCP Search
On this page

LibTmux.Session.GetWindowAsync

View as Markdown

Module
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Relations.cs
GetWindowAsync ( target : string , cancellationToken : CancellationToken ) Task<Window?>
methodasync [source]
methodasync [source]
GetWindowAsync

Reads one of this session's windows by target.

A target naming a window in another session answers null rather than that window: the question asked is which of this session's windows it is, and tmux resolving it elsewhere is not an answer to that.

Parameters
  • target ( string ) – A tmux window target inside this session.

  • cancellationToken ( CancellationToken ) – Cancels the tmux command.

Returns

The window, or null when this session has no such window.

0 declared, 0 inherited

Esc

Type to search.