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

ServerBuilder.output_limits

Bound how many bytes one command may read from tmux.

Source and package
Qualified name
libtmux::server::builder::ServerBuilder::output_limits
Module
server.builder
Declared in
ServerBuilder
Package
libtmux
Source
crates/libtmux/src/server/builder.rs
#[must_use = "use the returned builder to retain the limits" ] pub const fn output_limits( mut self, limits: OutputLimits ) -> Self

Description#

tmux answers with as many bytes as it has: a pane with a long history, a buffer holding a pasted file, a run-shell that keeps printing. Without a ceiling the operating system decides when to stop, and it does that by killing this process.

Examples#

use libtmux::OutputLimits;
let server = libtmux::Server::builder()
.output_limits(OutputLimits::default().max_stdout_bytes(1024 * 1024))
.build()?;
Parameters
Esc

Type to search.

Reference previewOpen reference