Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Swift API

Swift documentation

Server.loadBuffer(from:named:)

Swift

View as Markdown

Declared in
Server
Package
libtmux-swift
Source
Sources/LibTmux/Buffers.swift
Other languages
Python Ruby Lua TypeScript Rust Go Java .NETC++
loadBuffer(from:named:) ( from : String , named : String? ) → ()
methodasync [source]
methodasync [source]
loadBuffer(from:named:)

Fills a buffer from a file, letting tmux read it.

setBuffer(_:named:) carries the text as an argument, which caps it at whatever the platform allows in an argument vector and — over connected(attachingTo:_:) — forbids a newline outright, because a connection sends a command *line*. A path has neither problem: it is short, and tmux opens the file itself. This is the way to put many lines into a buffer from a connected server.

The path is resolved by the tmux server, which for a socket on this machine is this machine.

Raises
In other ports Fill a paste buffer from a file

0 declared, 0 inherited

Esc

Type to search.