Core Library0.xAPI 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-rs latest

Server.buffer_names

List the paste buffer names.

Source and package
Qualified name
libtmux::server::Server::buffer_names
Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
Other languages
Perl Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRuby Lua TypeScriptGoJavaC#C++Swift Kotlin Scala OCaml F# Clojure
pub async fn buffer_names(&self) -> Result< Vec<TmuxText>, Error >

Description#

A name is TmuxText because whoever made the buffer chose it: tmux before 3.7 stores any bytes, a newline included. Each name is read framed, so one holding a newline or = is one name, and Self::buffer() and Self::delete_buffer() take it back unchanged.

Errors

Returns an error when tmux refuses the listing, and Error::DecodeListing when its output does not decode.

tmux command#

The tmux commands behind buffer_names.

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
Go tmux.Server.ListBuffers
Java io.github.libtmux.Server.buffers
C# LibTmux.TmuxBuffers.GetAllAsync
C++ libtmux::Server::buffers
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