Class: Charming::Events::PasteEvent

Inherits:
Data
  • Object
show all
Defined in:
lib/charming/events/paste_event.rb

Overview

PasteEvent carries text pasted via the terminal’s bracketed-paste mode (‘e[200~ … e[201~`). Without bracketed paste, pasted text arrives as a storm of individual key events; with it, components receive the whole string at once via `handle_paste`.

Instance Attribute Summary collapse

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



9
10
11
# File 'lib/charming/events/paste_event.rb', line 9

def text
  @text
end