OutputDecoder
Turns a drained pipe into lines while preserving tmux values.
Source and package
- Qualified name
-
io.github .libtmux .transport. Output Decoder - Package
- io.github.libtmux.transport
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java
-
Description#
tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is escaped as
\xNNrather than replaced with U+FFFD, which keeps the original byte recoverable and matches what CPython'sbackslashreplaceproduces.tmux frames stdout with LF; CR is value data, including before LF. Stdout keeps interior blank lines and drops trailing ones. Diagnostic stderr normalizes CRLF and CR to LF and drops all blanks.
Members2#
- stderrLines method
- stdoutLines method