PaneOutputDecoder
Decodes a subscriber's raw UTF-8 output independently of other subscribers. Incomplete characters wait for the same pane's next chunk; malformed bytes become \xHH escapes. Call #reset() after each subscription gap and #finish() at termination. Confine an instance to one reader.
Source and package
- Qualified name
-
io.github .libtmux .control. Pane Output Decoder - Package
- io.github.libtmux.control
- Distribution
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/control/PaneOutputDecoder.java
Members5#
- decode method Decodes the preserved bytes, ignoring the client's predecoded text.
- finish method Escapes remaining partial bytes by pane, releases them, and returns an immutable map.
- PaneOutputDecoder method Bounds panes holding an incomplete character, each at most three bytes. A new partial pane evicts the oldest partial pane and increments
#resetCount(). - reset method Discards all partial characters after a gap and counts that reset.
- resetCount method The monotonic count of gap resets and partial-pane evictions.