Skip to content

fix(terminal): support bracketed paste mode - #190

Merged
Cleboost merged 1 commit into
masterfrom
fix/bracketed-paste
Nov 26, 2026
Merged

Cleboost merged 1 commit into
masterfrom
fix/bracketed-paste

Conversation

@Cleboost

Copy link
Copy Markdown
Owner

Summary

  • Add TerminalState::is_bracketed_paste() to check TermMode::BRACKETED_PASTE.
  • Wrap pasted text in \x1b[200~ ... \x1b[201~ when bracketed paste mode is enabled (and strip embedded bracketed-paste sequences) so multi-line pastes wait for confirmation instead of executing immediately.

Test plan

  • nix develop --command cargo test (8/8 passed)

@Cleboost
Cleboost merged commit 025fc9e into master Nov 26, 2026
3 checks passed
@Cleboost
Cleboost deleted the fix/bracketed-paste branch November 26, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant