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

class libtmux-dotnet latest

Pane

Namespace LibTmux.Pane LibTmux

Represents an immutable pane handle and snapshot.

View as Markdown

Source and package
Module
LibTmux
Package
LibTmux
Source
src/LibTmux/Pane.cs
Other languages
PythonRubyLuaTypeScriptRustGoJavaC++SwiftKotlinScala F#
class LibTmux.Pane
class [source]

Description#

Thread-safe: the handle is immutable once constructed and may be shared freely, including as a singleton. Every mutating call answers a new handle rather than changing this one.

Discussed in Architecture

In other ports A tmux pane

Members74 members#

Parent objects3 members#

  • Window property Gets the window containing this pane, with captured scalar state.
  • Session property Gets the session containing this pane.
  • Server property Gets the server that owns this pane.

Common operations45 members#

Other members26 members#

  • Active property Gets whether the pane is its window's active pane.
  • CaptureToBufferAsync method Captures the pane's contents into a tmux buffer.
  • CreatePaneAsync method Creates a floating pane against this one.
  • CurrentCommand property Gets the foreground command captured with this pane.
  • CurrentPath property Gets the current working directory captured with this pane.
  • Dead property Gets whether the pane's program has exited and the pane remains.
  • DeadStatus property Gets the exit status of a dead pane's program.
  • DisplayPaneNumbersAsync method Shows the pane numbers on every client.
  • ExecuteCommandAsync method Executes one raw tmux command against this pane.
  • Generation property Gets the server generation captured with this pane.
  • GetHashCode method
  • HistorySize property Gets how many lines have scrolled into the pane's history.
  • InMode property Gets whether the pane is in a mode, such as copy mode.
  • Left property Gets the pane's left offset, in cells, from its window's edge.
  • ProcessId property Gets the process ID of the program the pane started.
  • RawFormatFields property Gets the tmux fields captured when this handle materialized.
  • ReadOutputSinceAsync method Reads what the pane has printed since a position, and where this read finished.
  • RunAsync method Runs a shell command in the pane and waits for its exit status.
  • SendKeysAndWaitAsync method Sends keys to the pane and waits for what it prints in response.
  • SendTextAndWaitAsync method Types a line, presses Enter, and waits for a later line to contain the text.
  • StartCommand property Gets the command the pane started, as tmux prints it, or empty for the default shell.
  • Synchronized property Gets whether keys typed into the pane go to every synchronized pane in its window.
  • Top property Gets the pane's top offset, in cells, from its window's edge.
  • Tty property Gets the terminal device the pane's program reads and writes, such as /dev/pts/3.
  • WaitForTextAsync method Waits until the pane shows literal text.
  • WaitUntilAsync method Waits until a condition holds over the rows the pane shows.
Esc

Type to search.