TmuxBuffers.SaveAsync
Writes a buffer to a file.
Source and package
- Qualified name
-
LibTmux .Tmux Buffers. Save Async - Namespace
- LibTmux
- Declared in
TmuxBuffers- Package
- LibTmux
- Source
- src/LibTmux/Buffers/TmuxBuffers.cs
-
- Parameters
-
-
name(string?) – The buffer to write, or null for the most recent.Default
null -
append(bool) – Whether the buffer joins what the file already holds.Default
false -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
- Returns
-
A task that completes once tmux has written 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.SaveAsync.
tmux command
task materialThe tmux commands behind SaveAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 5 other ports mappedSource-verified mappings for Write a paste buffer to 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 Writes a buffer to a file. | This page |
| Python | libtmux Save a paste buffer to a file via $ tmux save-buffer. | on Server |
| TypeScript | server Write a paste buffer to a file instead of reading it back. | on Server |
| Go | tmux SaveBuffer writes a named or most-recent buffer to a file. Path follows Server.SourceFile's current-user expansion and lexical normalization. It changes that file. Exact "-" is rejected because it names tmux's stdout rather than a path; Server.SaveBufferTo streams to an io.Writer, and this method is the one that runs over a Connection. | on Server |
| C++ | libtmux:: | on Serverreadonly |
| Swift | Server Writes a buffer to a file, letting tmux do the writing. | 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.
Acquire bytes with Buffers.get and write them with native Raku I/O.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.