struct TermBuf::Events::Paste

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(text : String, complete : Bool) #

[View source]

Instance Method Detail

def clone #

[View source]
def complete : Bool #

def copy_with(text _text = @text, complete _complete = @complete) #

[View source]
def text : String #