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

Rust API

Rust documentation

server.Server.load_buffer

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

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
load_buffer ( self , name : Option<&str> , path : impl AsRef<Path> ) → Result<(), Error>
method [source]
method [source]
load_buffer

Fill a paste buffer from a file, letting tmux read it.

Self::set_buffer carries the data as a command argument, which the kernel caps: on Linux a single argument stops at MAX_ARG_STRLEN, 128 KiB, and a larger one fails with "argument list too long" before tmux sees it. tmux opens the file itself here, so size is the file system's problem rather than the command line's.

path is tmux's to resolve, and tmux reads it as the user running the server, which is not necessarily this process.

Errors

Returns an error when tmux cannot read the path.

0 declared, 0 inherited

Esc

Type to search.