urxvt-confirm-paste(1)

okay so bestie, welcome to urxvt-confirm-paste(1) from the RXVT-UNICODE manual β€” this little page is giving clipboard safety with main character energy ✨.


πŸŽ€ NAME πŸŽ€

confirm-paste β€” ask for confirmation before pasting control characters

🌸 DESCRIPTION 🌸

It displays a confirmation dialog when a paste containing control characters is detected, fr fr. The user can either choose:

  • y β€” paste the string unmodified, exactly as it is πŸ’…
  • f β€” paste a sanitized variant where all control characters are removed 🧼
  • n β€” drop the paste request completely, bye πŸ‘‹

This is mostly meant as a defense-in-depth mechanism to protect against the common web browser bug of you selecting some text but the browser pasting a completely different text, which has some attack potential. Not the clipboard acting sus 😭.

It can also be useful to prevent you from accidentally pasting large amounts of text. We love a little accidental chaos prevention 🫢.

πŸ” DETAILS πŸ”

If a string containing unicode control characters (specifically U+0000 .. U+001F currrently) is pasted into the terminal, this extension will ask whether it should be pasted. Strings without control characters get pasted without prompt. Lowkey convenient.

When a sanitized version is pasted (choice f), then contiguous sequences of those control characters will be replaced by a single spaces. Yes bestie, that's the wording β€” it's iconic in its own way 😭.

The exact detection and sanitization algorithm is subject to change in future versions. So don't get too attached to the details, okay? πŸ¦‹


This page is from RXVT-UNICODE version 9.31, dated 2023-12-02. Stay safe and paste cute, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from