CLIPBOARD

Paste Confirmation

See exactly what you're about to paste before it executes. Multi-line paste gets a safety check.

Questions this answers

  • How do I prevent pasting multi-line commands that execute immediately?
  • What is bracketed paste mode and why does it not always work?
  • Is there a terminal that warns before pasting dangerous clipboard content?
  • How to stop accidental command execution from pasted text?

How it works

When you paste text containing newline characters into a Chau7 terminal, a confirmation dialog appears showing the full content with syntax highlighting. Each line is displayed with a line number so you can review exactly what will be sent to the shell. You can edit the content inline, strip trailing newlines, or cancel the paste entirely.

This works independently of bracketed paste mode, which relies on the running application to handle paste sequences correctly: and many programs do not. Chau7's confirmation operates at the terminal emulator level, before bytes reach the shell, providing consistent protection regardless of what is running in the session.

Why it matters

Pasting from the clipboard is one of the most dangerous terminal actions. A single newline in copied text can execute commands before you see them. ClickFix attacks exploit this by embedding hidden commands in seemingly innocent clipboard content. Chau7 shows a preview of multi-line pastes and warns about content containing newlines or control characters before anything executes.

Frequently asked questions

Can I disable paste confirmation for single-line pastes?

Yes. By default, only multi-line pastes trigger confirmation. You can also configure a character-count threshold so that very long single-line pastes (like base64 blobs) are also checked.

Does this replace bracketed paste mode?

It complements it. Chau7 still sends bracketed paste sequences for applications that support them, but the confirmation dialog provides a second layer of protection that works even when the application ignores or mishandles bracketed paste.