class

Phosphor::PasteEvent

Inherits Phosphor::Event < Reference < Object

The full text of a bracketed paste, delivered as one event rather than a KeyEvent per character.

Produced by StdinPort when it detects a \e[200~...\e[201~ bracketed paste sequence (enabled unconditionally by Terminal#enter's \e[?2004h). App#run translates this into Cmd::InsertString before routing through View#dispatch, so InputMock/TextAreaMock receive the whole pasted block in one operation instead of one Cmd::InsertChar per character — avoiding a re-render per keystroke and any risk of corrupting multi-byte sequences split across separate inserts.

Constructors

new(text : String)
Source

Instance methods

text
Source