server.Server.load_buffer
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- crates/libtmux/src/server.rs
-
-
Fill a paste buffer from a file, letting tmux read it.
Self::set_buffercarries 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.
0 declared, 0 inherited