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-scala

Control

Owns an attached Java control client. Canceling one call interrupts only its caller. A deadline after dispatch or releasing this resource can end the attachment and its queued requests and observations. Use separate attachments when those lifetimes must be independent.

Source and package
Qualified name
io.github.libtmux.scaladsl.cats.Control
Package
io.github.libtmux.scaladsl.cats
Distribution
io.github.libtmux:libtmux-scala_3
Source
libtmux-scala-cats/src/main/scala/io/github/libtmux/scaladsl/cats/Control.scala
final class Control[F[_]]object Control
Type parameters
  • F for Control() [overload 1]

Members11 members

Common operations9

  • acknowledge method Reads one raw reply without claiming deferred command completion. Cancellation does not prove that tmux rolled back a dispatched command. The timeout starts after Scala admission; an effect timeout can bound the whole call.
  • attachUnfenced method Attaches lazily to whatever server now answers this endpoint, without an incarnation guard; prefer attaching a captured session. Bounds simultaneous acknowledgement calls. Release stops their owned work before detaching the client and preserves the tmux daemon.
  • events method Registers Java's typed notifications, including unknown event kinds.
  • isAlive method Whether this attachment's process is still running.
  • output method Registers decoded text output before the returned resource body runs. Terminal bytes and character boundaries are not preserved by Java.
  • standardError method Error text from this control process, at most 4096 bytes.
  • standardErrorTruncated method Whether standardError stopped before the process finished writing.
  • unwatch method Removes a watch registered under name.
  • watch method Asks tmux to report format when it changes. A target that does not name a pane or window watches the attached session.

Other members2

  • Ack class Retains tmux's raw reply framing and line shape.
  • attach method Attaches to the process the captured session named.
Esc
Search in

Type to search.

Reference previewOpen reference