Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

method libtmux-dotnet latest

Session.FindWindowAsync

Namespace LibTmux.Session.FindWindowAsync LibTmux

Reads one of this session's windows by identifier.

View as Markdown

Source and package
Module
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Relations.cs
FindWindowAsync ( id : WindowId , cancellationToken : CancellationToken ) → Task<Window?> ( target : string , cancellationToken : CancellationToken ) → Task<Window?>
methodasyncoverload2 overloads [source]

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 ( WindowId ) – The window identifier to look for. (for FindWindowAsync(id, cancellationToken))

  • cancellationToken ( CancellationToken ) – 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.

Esc

Type to search.