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.

C# API

method libtmux-dotnet latest

Server.EnterControlModeAsync

Namespace LibTmux.Server.EnterControlModeAsync LibTmux

Starts a tmux control client and keeps it running.

View as Markdown

Source and package
Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.ControlMode.cs
EnterControlModeAsync ( target : string? , cancellationToken : CancellationToken ) → Task<IControlModeSession>
methodasync [source]

Description#

This is the streaming counterpart to the one-shot methods, not a mode they can be switched into: the rest of this type starts a client, runs one command, and lets it exit, which is why it never sees anything it did not ask for. Hold the returned session and read Events to see the rest.

Parameters
  • target ( string? ) – The session to attach to, or null to let tmux pick the most recently used one.

  • cancellationToken ( CancellationToken ) – Cancels starting the client.

Returns

A session that reports what tmux does until it is disposed.

Raises

Discussed in Control mode vs one-shot

Esc

Type to search.