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

io.github.libtmux.Pane.Pane.paste

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

View as Markdown

Module
io.github.libtmux.Pane
Declared in
Pane
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Pane.java
paste ( text : String ) → void ( text : String , beforePaste : Runnable ) → void
methodoverload2 overloads [source]
methodoverload2 overloads [source]
paste

Pastes text into this pane as one block, leaving nothing behind on the server.

Nothing in the text is looked up as a key name, so a line containing Enter or a bracket arrives as those characters. That is what an editor, a REPL, or anything reading a here-document needs, and it is the difference from #send .

tmux needs a buffer to paste from, and this one travels in the same invocation as the paste that consumes it. A caller that stops in between therefore cannot leave the text in the paste history every session on the server can read.

The text goes to tmux on standard input rather than as an argument, so it is not bounded by the size of a tmux command and never reaches tmux's parser.

Parameters
  • beforePaste ( Runnable ) – runs after staging and immediately before the paste dispatch

0 declared, 0 inherited

Esc

Type to search.