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.

MoreLess about this notice

method libtmux-dotnet

TmuxBuffers.SaveAsync

Writes a buffer to a file.

Source and package
Qualified name
LibTmux.TmuxBuffers.SaveAsync
Namespace
LibTmux
Declared in
TmuxBuffers
Package
LibTmux
Source
src/LibTmux/Buffers/TmuxBuffers.cs
Parameters
Returns

A task that completes once tmux has written it.

Errors

Recorded calls

source calls
No call edges in the C# model.

The 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 material

The tmux commands behind SaveAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 5 other ports mapped

Source-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.

Write a paste buffer to a file in each port
PortAPIDiffers from C#
C# LibTmux.TmuxBuffers.SaveAsync
Writes a buffer to a file.
This page
Python libtmux.Server.save_buffer
Save a paste buffer to a file via $ tmux save-buffer.
on Server
TypeScript server.Server.saveBuffer
Write a paste buffer to a file instead of reading it back.
on Server
Go tmux.Server.SaveBuffer
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::Server::save_buffer on Serverreadonly
Swift Server.saveBuffer(named:to:)
Writes a buffer to a file, letting tmux do the writing.
asyncon Server
No Haskell equivalent.

No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.

No Rust equivalent.

no equivalent on Server

No Java equivalent.

no equivalent on Server

No OCaml equivalent.

No direct public OCaml equivalent is recorded for this operation.

No Perl equivalent.

No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.

No Raku equivalent.

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#.

Esc
Search in

Type to search.

Reference previewOpen reference