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

class libtmux-kotlin

ControlClient

A tmux client that stays attached and answers one command at a time.

Source and package
Qualified name
io.github.libtmux.kotlin.ControlClient
Package
io.github.libtmux.kotlin
Distribution
io.github.libtmux:libtmux-kotlin
Source
libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/ControlClient.kt
public class ControlClient : AutoCloseable

Description

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated extension in ControlClientOperations.kt.

Members11 members

Common operations2

Other members9

  • asJava property The Java control client this wraps: the same object, for a Java API that takes one.
  • close method Ends the client, rejecting queued requests and resolving picked requests as uncertain.
  • isAlive property Whether the client is still running.
  • send method Runs one command and waits for its reply.
  • server property
  • standardError property The error text captured from this control process, at most 4096 bytes.
  • standardErrorTruncated property Whether standardError stopped before the process finished writing it.
  • unwatch method Stops a watch.
  • watch method Asks tmux to report a format whenever its value changes.

Guides

task material

Pages that discuss ControlClient.

Esc
Search in

Type to search.

Reference previewOpen reference