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.

method libtmux-rs latest

PaneOutput.next_chunk

Return the next chunk this pane wrote, or None once it stops.

Source and package
Qualified name
libtmux::control::PaneOutput::next_chunk
Module
control
Declared in
PaneOutput
Package
libtmux
Source
crates/libtmux/src/control.rs
pub async fn next_chunk(&mut self) -> Option<Vec<u8>>

Description#

A chunk is what tmux chose to report at once, which is not a line and not a fixed size. Callers wanting lines should buffer.

Cancel safety

Nothing happened: a dropped call consumes no chunk.

Esc

Type to search.

Reference previewOpen reference