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

server.builder.ServerBuilder.output_limits

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

View as Markdown

Module
server.builder
Declared in
ServerBuilder
Package
libtmux
Source
crates/libtmux/src/server/builder.rs
output_limits ( mut , limits : OutputLimits ) → Self
method [source]
method [source]
output_limits

Bound how many bytes one command may read from tmux.

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()?;

0 declared, 0 inherited

Esc

Type to search.