Core Library0.xAPI reference

Choose documentation 1

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

module libtmux-fsharp

Chain

Builds commands tmux runs together, each acting on what the one before made.

Source and package
Qualified name
LibTmux.FSharp.Chain
Namespace
LibTmux.FSharp
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Hierarchy.fsi

Description

tmux moves its current target as a chain runs: newWindow makes the new window current, a following split splits its pane, and a following sendLine types into the pane that split made. No step after the first names a target, so a chain needs no round trip to learn the id of what it just created.

A chain is a core TmuxChain: each step returns a new one, building reads nothing, and run sends every command in one tmux invocation. add appends any command, such as a typed request's ToCommand.

Members8 members

  • run Runs every command in one tmux invocation and returns tmux's combined answer.
  • add Appends any command, such as a typed request's ToCommand.
  • arrange Arranges the current window with a tmux layout; the chain checks the name before tmux sees it.
  • newWindow Adds a window to a session and makes it the one following steps act on.
  • sendLine Types a line into the current pane and presses Enter.
  • splitLeftRight Splits the current pane into a left and a right one; the right becomes current.
  • splitTopBottom Splits the current pane into a top and a bottom one; the bottom becomes current.
  • start Starts an empty chain against a server.

Guides

task material

Pages that discuss Chain.

Esc
Search in

Type to search.

Reference previewOpen reference