Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-dotnet

TmuxChain

Commands tmux runs together, in one process.

Source and package
Qualified name
LibTmux.TmuxChain
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Chaining/TmuxChain.cs
class LibTmux.TmuxChain

Description

A one-shot call sends one command and waits for its answer. A chain hands tmux the whole sequence at once, so the commands run back to back in the order given, and a failure skips the ones after it, without another caller's command landing between them.

Building a chain reaches nothing; only ExecuteAsync() does. Each step returns a new chain, so a partly built one can be shared without another caller's additions appearing in it.

Properties1

TmuxChain properties
NameTypeDescription
Commands IReadOnlyList<TmuxCommand> Gets the commands this chain will run, in order.

Members2 members

  • ExecuteAsync Runs every command in one tmux invocation.
  • Then Adds one command and returns the longer chain.
Esc
Search in

Type to search.

Reference previewOpen reference