Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-cxx latest

Server.buffers

The server's cut buffers, newest first as tmux orders them.

Source and package
Qualified name
libtmux::Server::buffers
Namespace
libtmux
Declared in
Server
Package
libtmux-cxx
Source
include/libtmux/server.hpp
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua TypeScriptRustGoJavaC#Swift Kotlin Scala OCaml F# Clojure
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] expected<std::vector<Buffer>, CommandFailure> buffers() const;

Description#

A server holding none answers with an empty list rather than a failure, like every other listing here.

tmux command#

The tmux commands behind buffers.

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

List the paste buffers

Equivalents of List the paste buffers in other languages
Language Equivalent
Python libtmux.Server.list_buffers
Ruby LibTmux::Server#list_buffers
Erlang tmux_buffer:list/1
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript server.Server.listBuffers
Rust server.Server.buffer_names
Go tmux.Server.ListBuffers
Java io.github.libtmux.Server.buffers
C# LibTmux.TmuxBuffers.GetAllAsync
Swift Server.buffers()
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 Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference