Server.show_buffer
Show content of a paste buffer via $ tmux show-buffer.
Source and package
-
Examples#
>>> server.set_buffer('test_data')>>> server.show_buffer()'test_data'- Parameters
-
-
buffer_name(str | None) # – Name of the buffer (-bflag). Defaults to the most recent.
-
- Returns
-
str Buffer content.
tmux command#
The tmux commands behind show_buffer.
tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Read a paste buffer's contents
| Language | Equivalent |
|---|---|
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | server |
| Rust | server |
| Go | tmux |
| Java | no equivalent on Server |
| C# | Lib |
| C++ | no equivalent on Server |
| Swift | Server |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | Lib Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.