server.Server.saveBuffer
- Module
- server
- Declared in
- Server
- Package
- libtmux
- Source
- packages/libtmux/src/server.ts
- Other languages
- Python Ruby Lua Rust Go Java .NETC++Swift
- saveBuffer ( name : : string , path : : string , options : : SaveBufferOptions ) Promise<void>
-
Write a paste buffer to a file instead of reading it back.
showBufferreturns the contents through this process; for a large buffer that means holding it in memory to put it somewhere else. tmux writes the file itself, on the machine tmux is running on.In other ports Write a paste buffer to a file
- Python
libtmux.Server.save_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.SaveBuffer - Java no equivalent on
Server - .NET
LibTmux.TmuxBuffers.SaveAsync - C++
libtmux::Server::save_buffer - Swift
Server.saveBuffer(named:to:)
- Python
Examples
await server.saveBuffer("captured", "/tmp/build.log");>>> import pathlib>>> server.set_buffer('save_me')>>> path = pathlib.Path(request.config.rootdir) / '..' / 'tmp_save.txt'>>> server.save_buffer(str(path))0 declared, 0 inherited