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

TmuxOptions.GetAsync

Namespace LibTmux.TmuxOptions.GetAsync LibTmux

Reads one option.

View as Markdown

Source and package
Module
LibTmux
Declared in
TmuxOptions
Package
LibTmux
Source
src/LibTmux/Options/TmuxOptions.cs
GetAsync ( request : GetOptionRequest , cancellationToken : CancellationToken ) → Task<IReadOnlyList<TmuxOption>> ( key : TmuxOptionKey<T> , cancellationToken : CancellationToken ) → Task<T>
methodasyncoverload2 overloads [source]

Description#

Unescaping a doubled dollar sign needs the connected tmux's version, so a table reached from a handle that has not found a live server yet discovers one first.

Parameters
  • request ( GetOptionRequest ) – Which option to read, and how. (for GetAsync(request, cancellationToken))

  • cancellationToken ( CancellationToken ) – Cancels the tmux command.

  • key ( TmuxOptionKey<T> ) – The option and how to read it. (for GetAsync(key, cancellationToken))

Returns

Every entry tmux reported for the name: one for an ordinary option, and one per set index for an array. (for GetAsync(request, cancellationToken))

The value tmux applies here, set in this scope or inherited from a parent. (for GetAsync(key, cancellationToken))

Raises
  • TmuxOptionException – tmux rejected the option name. (for GetAsync(request, cancellationToken))

  • TmuxOptionException – tmux rejected the name, reported no value, or reported one the key cannot read. (for GetAsync(key, cancellationToken))

Discussed in Options and hooks

Esc

Type to search.