TmuxBuffers.LoadAsync
Puts a file's contents into a buffer.
Source and package
- Qualified name
-
LibTmux .Tmux Buffers. Load Async - Namespace
- LibTmux
- Declared in
TmuxBuffers- Package
- LibTmux
- Source
- src/LibTmux/Buffers/TmuxBuffers.cs
- Task LoadAsync( string path, string? name = null, Cancellation
Token cancellationToken = default ) -
- Parameters
-
-
name(string?) – The buffer name, or null for a new one.Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
- Returns
-
A task that completes once tmux has read it.
- Errors
-
-
Argument
Exception –pathis blank.
-
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.TmuxBuffers.LoadAsync.
tmux command
task materialThe tmux commands behind LoadAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 6 other ports mappedSource-verified mappings for Fill a paste buffer from a file. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Puts a file's contents into a buffer. | This page |
| Python | libtmux Load a file into a paste buffer via $ tmux load-buffer. | on Server |
| Erlang | tmux Load binary bytes under a name, or create an automatic buffer. Input may contain NUL. Empty input succeeds without changing the buffer store, including an existing name. The command payload, including argv and stdin, must fit the endpoint's 256 KiB admission limit. See tmux_server:command/3. | free function |
| TypeScript | server Fill a paste buffer from data fed through tmux's stdin. | on Server |
| Go | tmux LoadBuffer reads a file into a named or newly allocated buffer. Path follows Server.SourceFile's current-user expansion and lexical normalization. It mutates tmux's destination buffer. Exact "-" is rejected because it names tmux's stdin rather than a path; Server.LoadBufferFrom streams from an io.Reader, and this method is the one that runs over a Connection. | on Server |
| C++ | libtmux:: Read a file into a named buffer, and write one back out. | on Serverreadonly |
| Swift | Server Fills a buffer from a file, letting tmux read it. | asyncon Server |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Server
no equivalent on Server
No direct public OCaml equivalent is recorded for this operation.
No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.
Read file bytes with native Raku I/O and pass them to Buffers.put.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.