Table of Contents

Class PasteEventArgs

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

Event arguments for the application-level Paste event. Carries the raw payload delivered by the terminal's bracketed-paste mode, before any view-level sanitization. Set Handled to true to stop the paste from being dispatched to the focused view.

public class PasteEventArgs : HandledEventArgs
Inheritance
PasteEventArgs
Inherited Members

Remarks

Bracketed paste delivers the entire pasted payload as a single string, distinct from keyboard input. Subscribers at the application boundary observe the unmodified text. View-level sanitization (line-ending normalization, control-character stripping) is performed downstream by OnSanitizingPaste(string) when the Paste handler runs.

Constructors

PasteEventArgs(string)

Initializes a new PasteEventArgs.

Properties

Text

The pasted text. Bracketing markers (ESC[200~ / ESC[201~) are stripped by the parser and are never present in this string.

Methods

ToString()