struct
TermBuf::Events::Paste
- TermBuf::Events::Paste
- Struct
- Value
- Object
Overview
Text that arrived between bracketed paste markers.
It is delivered whole rather than as key presses, which is the point of the brackets: pasted text is not typing, and an application that treats it as typing will run its key bindings over whatever was on the clipboard.
complete is false when the terminal never sent the closing marker and the paste was ended on a stall or a size limit instead. What arrived is still delivered, since it beats nothing, but an application storing it somewhere permanent may want to know it might be half a clipboard.
Defined in:
termbuf/terminal/event.crConstructors
Instance Method Summary
- #clone
- #complete : Bool
- #copy_with(text _text = @text, complete _complete = @complete)
- #text : String