Appearance
Bracketed paste (DECSET 2004)
Bracketed paste mode wraps pasted text in special escape sequences so applications can distinguish pasted content from typed input. Enable with
ESC [ ? 2004 h. When active, pasted text is bracketed between ESC [ 200 ~ (start) and ESC [ 201 ~ (end).
This is a security feature: without bracketed paste, pasting text containing newlines into a shell prompt would immediately execute commands. With bracketed paste, the shell can treat the entire paste as literal text. This also enables editors to handle paste correctly — vim can enter paste mode automatically, preserving indentation rather than auto-indenting each line.
Widely adopted. Most modern shells (bash, zsh, fish) and editors (vim, emacs) enable bracketed paste by default.Supported by 6 of 6 backends (100%)
Support Matrix
| Backend | Version | Support | Notes |
|---|---|---|---|
| Alacritty | 0.26.0 | ✓ yes | |
| Ghostty | 1.3.1 | ✓ yes | |
| Kitty | 0.40.0 | ✓ yes | |
| vt100 | 0.1.0 | ✓ yes | |
| WezTerm | 0.1.0-fork.5 | ✓ yes | |
| xterm.js | 5.5.0 | ✓ yes |