Server.save_buffer
Save a paste buffer to a file via $ tmux save-buffer.
Source and package
- Qualified name
-
libtmux.Server. save _buffer - Module
- libtmux
- Declared in
Server- Package
- libtmux
- Source
- src/libtmux/server.py
- Other languages
- Perl Erlang PowerShell Julia Elixir Haskell Common Lisp Ruby Lua TypeScript Rust Go Java C#C++Swift Kotlin Scala OCaml F# Clojure
-
Examples#
>>> import pathlib>>> server.set_buffer('save_me')>>> path = pathlib.Path(request.config.rootdir) / '..' / 'tmp_save.txt'>>> server.save_buffer(str(path))
tmux command#
The tmux commands behind save_buffer.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Write a paste buffer to a file
| Language | Equivalent |
|---|---|
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | no equivalent on Server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.