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-swift latest

Server.setBuffer(_:named:)

Puts text into a named buffer.

Source and package
Qualified name
Server.setBuffer(_:named:)
Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Buffers.swift
Other languages
Perlmethod Erlang PowerShell Julia Elixir Haskell Common Lisp PythonRubyLuaTypeScriptRustGo Java C#C++ Kotlin Scala OCaml F# Clojure
setBuffer(contents: String, named: String?) -> ()

Description#

The contents and the name are data: text ending in ; is stored whole.

Parameters
Raises

tmux command#

The tmux commands behind setBuffer(_:named:).

tmux C API#

The C declarations in tmux that implement these commands.

In other ports#

Put text into a paste buffer

Equivalents of Put text into a paste buffer in other languages
Language Equivalent
Python libtmux.Server.set_buffer
Ruby LibTmux::Server#write_buffer
Lua libtmux.Server:set_buffer
Haskell No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
TypeScript server.Server.setBuffer
Rust server.Server.set_buffer
Go tmux.Server.SetBuffer
Java no equivalent on Server
C# LibTmux.TmuxBuffers.SetAsync
C++ libtmux::Server::set_buffer
OCaml No direct public OCaml equivalent is recorded for this operation.
Perl LibTmux::Server::set_buffer Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.

No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.

Esc

Type to search.

Reference previewOpen reference