Table of Contents

Field CSI_EnableBracketedPaste

Namespace
Terminal.Gui.Drivers
Assembly
Terminal.Gui.dll

ESC [ ? 2004 h - Enable bracketed paste mode.

public static readonly string CSI_EnableBracketedPaste

Returns

string
ESC [ ? 2004 h - Enable bracketed paste mode.

Remarks

When bracketed paste mode is enabled, the terminal wraps pasted content with the start marker CSI_BracketedPasteStart (ESC[200~) and the end marker CSI_BracketedPasteEnd (ESC[201~). This lets applications distinguish pasted text from typed input and handle large pastes efficiently.

Supported by xterm, Windows Terminal, iTerm2, and most modern terminal emulators.