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

TmuxReply

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/TmuxCommand.swift
struct TmuxReply : struct TmuxReply
struct [source]
struct [source]
struct TmuxReply

What tmux said.

Output is bytes. tmux does not promise UTF-8 — a pane title can carry anything the program in it emitted — so decoding is the caller's decision and invalid bytes are data rather than a failure.

7 declared, 1 inherited

Members

  • errorText property Standard error decoded as UTF-8, trimmed of its trailing newline.
  • exitCode property tmux's exit status. Nonzero is an answer — has-session says "no" this way — so it is reported rather than thrown.
  • init(standardOutput:standardError:exitCode:) method
  • isSuccess property
  • standardError property Where tmux explains a command it refused.
  • standardOutput property Bytes rather than a string, because a format's fields are separated by a byte and decoding happens after splitting, not before.
  • text property Standard output decoded as UTF-8, replacing anything invalid.

Inherited members

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

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

Type to search.