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.

struct libtmux-go latest

PasteBufferRequest

PasteBufferRequest configures one tmux paste-buffer operation. Its zero value pastes the top buffer, replaces linefeeds with tmux's default carriage-return separator, and uses the version's default control-character handling. Pointer values are copied before I/O and must not be mutated concurrently.

Source and package
Qualified name
tmux.PasteBufferRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_process.go
struct tmux.PasteBufferRequest

Fields6#

PasteBufferRequest fields
NameTypeDescription
Bracket bool Bracket surrounds the paste with bracketed-paste control codes when the pane application has requested bracketed paste mode.
BufferName *string BufferName selects a named tmux buffer. Nil selects the top buffer; nonnil empty remains an explicit buffer name.
DeleteAfter bool DeleteAfter asks tmux to delete an existing selected buffer after processing it. Deletion does not prove bytes reached a pane whose input may be disabled.
LinefeedSeparator bool LinefeedSeparator preserves linefeeds instead of replacing them with Separator or tmux's default carriage return.
NoVis bool NoVis requests raw bytes and requires tmux 3.7. Older versions already paste raw bytes; see UnsupportedPolicy.
Separator *string Separator replaces linefeeds. Nil uses tmux's default carriage return; nonnil empty removes linefeeds. LinefeedSeparator takes precedence.
Esc

Type to search.

Reference previewOpen reference