ServerBuilder.output_limits
Bound how many bytes one command may read from tmux.
Source and package
- Qualified name
-
libtmux::server:: builder:: Server Builder:: 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: Output
Limits ) -> 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-shellthat 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