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

io.github.libtmux.transport.OutputDecoder.OutputDecoder

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

View as Markdown

Module
io.github.libtmux.transport.OutputDecoder
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/transport/OutputDecoder.java
class io.github.libtmux.transport.OutputDecoder.OutputDecoder
classreadonly [source]
classreadonly [source]
class io.github.libtmux.transport.OutputDecoder.OutputDecoder

Turns a drained pipe into lines the way callers already expect.

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.

The two channels split differently: stdout keeps interior blank lines and drops only trailing ones, stderr drops every blank wherever it appears. That asymmetry is not a tidy rule, it is the observable shape callers depend on.

2 declared, 0 inherited

Members

Esc

Type to search.