Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

function LibTmux.jl latest

save_buffer

Module LibTmux.save_buffer LibTmux
Source and package
Module
LibTmux
Package
LibTmux
Source
src/pane_io.jl

Methods#

save_buffer( connection::LibTmux.ControlConnection, buffer::LibTmux.BufferRef; max_bytes, kwargs... )[source]#

Read exact buffer bytes through a private local file and a completion fence. Names must be valid UTF-8 without control bytes, because tmux can reflect them in diagnostics or notifications. Missing buffers raise StaleReference . The observed size is checked before saving and before reading; concurrent replacement is not locked. max_bytes bounds returned bytes, not a concurrent daemon write to the spool. Local files are always removed; the buffer remains caller-owned. There is no subprocess fallback.

save_buffer(connection::ControlConnection, buffer::BufferRef; max_bytes=8388608, kwargs...)

save_buffer(server::LibTmux.Server, buffer::LibTmux.BufferRef; max_bytes, kwargs...)[source]#

Read exact buffer bytes without text conversion or newline changes.

Esc

Type to search.

Reference preview Open reference