Core Library0.xAPI Reference

Choose documentation 3

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.

class libtmux-java latest

OutputDecoder

Turns a drained pipe into lines while preserving tmux values.

Source and package
Qualified name
io.github.libtmux.transport.OutputDecoder
Package
io.github.libtmux.transport
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java
class io.github.libtmux.transport.OutputDecoder

Description#

tmux emits pane content, so the bytes are not guaranteed to be UTF-8. A malformed byte is escaped as \xNN rather than replaced with U+FFFD, which keeps the original byte recoverable and matches what CPython's backslashreplace produces.

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#

Esc

Type to search.

Reference previewOpen reference