server.Server.loadBuffer
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- Other languages
- Python Ruby Lua Rust Go Java .NETC++Swift
-
Fill a paste buffer from data fed through tmux's stdin.
Use this over
Server.setBufferfor anything large or binary: that one passes its data as a command-line argument, and this one does not.In other ports Fill a paste buffer from a file
- Python
libtmux.Server.load_buffer - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- Rust no equivalent on
Server - Go
tmux.Server.LoadBuffer - Java no equivalent on
Server - .NET
LibTmux.TmuxBuffers.LoadAsync - C++
libtmux::Server::load_buffer - Swift
Server.loadBuffer(from:named:)
- Python
Examples
await server.loadBuffer("payload", new Uint8Array([0x68, 0x69]));>>> import pathlib>>> path = pathlib.Path(request.config.rootdir) / '..' / 'tmp_load.txt'>>> _ = path.write_text('loaded')>>> server.load_buffer(str(path), buffer_name='loaded_buf')0 declared, 0 inherited