Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

ControlReply

Swift
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift

View as Markdown

Package
libtmux-swift
Source
Sources/LibTmux/ControlProtocol.swift
struct ControlReply : struct ControlReply
struct [source]
struct [source]
struct ControlReply

One command's reply, framed between tmux's %begin and its terminator.

Framing is all this carries: whether the command succeeded is isError , and what it said is the body. Replies and notifications arrive on the same stream, so a reader gets both and has to expect either.

4 declared, 1 inherited

Members

  • init(number:lines:isError:) method
  • isError property tmux closed the block with %error rather than %end. The reason is in lines , the same place a successful reply's output is.
  • lines property What the command printed, one entry per line, with the block's own %begin and %end removed.
  • number property The number tmux stamped on this reply's block.

Inherited members

Reached through Equatable.!=(_:_:).

  • !=(_:_:) Equatable.!=(_:_:) Returns a Boolean value indicating whether two values are not equal.
Esc

Type to search.