TmuxReply
What tmux said.
Source and package
- Qualified name
-
TmuxReply - Package
- libtmux-swift
- Source
- Sources/LibTmux/TmuxCommand.swift
-
Description#
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.
Members7#
- errorText: var error
Text : String property Standard error decoded as UTF-8, trimmed of its trailing newline. - exitCode: let exit
Code : Int32 property tmux's exit status. Nonzero is an answer —has-sessionsays "no" this way — so it is reported rather than thrown. - init(standardOutput:standardError:exitCode:) method
- isSuccess: var is
Success : Bool property - standardError: let standard
Error : [UInt8] property Where tmux explains a command it refused. - standardOutput: let standard
Output : [UInt8] property Bytes rather than a string, because a format's fields are separated by a byte and decoding happens after splitting, not before. - text: var text: String property Standard output decoded as UTF-8, replacing anything invalid.
Inherited members1 member#
Reached through Equatable.!=(_:_:).