Server.load_buffer
Fill a paste buffer from a file, letting tmux read it.
Source and package
- Qualified name
-
libtmux::server:: Server:: load _buffer - Module
- server
- Declared in
Server- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
Description#
Self::set_buffer()carries the data as a command argument, which the kernel caps: on Linux a single argument stops atMAX_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.pathis 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.
tmux command#
The tmux commands behind load_buffer.
tmux C API#
The C declarations in tmux that implement these commands.