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

Rust API

Rust documentation

server.Server.save_buffer

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
server
Declared in
Server
Package
libtmux
Source
crates/libtmux/src/server.rs
save_buffer ( self , name : Option<&str> , path : impl AsRef<Path> ) → Result<(), Error>
method [source]
method [source]
save_buffer

Write a paste buffer to a file, letting tmux do the writing.

The counterpart to Self::load_buffer , and the same reasoning: the bytes never cross a command line, so a buffer larger than an argument can hold still round-trips. tmux writes as the user running the server.

Errors

Returns an error when the buffer is missing or tmux cannot write the path.

0 declared, 0 inherited

Esc

Type to search.