On this page
Server.loadBuffer(from:named:)
- Declared in
- Server
- Package
- libtmux-swift
- Source
- Sources/LibTmux/Buffers.swift
-
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 — overconnected(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
0 declared, 0 inherited