1urxvt-confirm-paste(1) RXVT-UNICODE urxvt-confirm-paste(1)
2
3
4
6 confirm-paste - ask for confirmation before pasting control characters
7
9 Displays a confirmation dialog when a paste containing control
10 characters is detected. The user can choose "y" to either paste a
11 sanitized variant where all control characters are removed, "p" to
12 paste the string unmodified or "n" to drop the paste request
13 completely.
14
15 This is mostly meant as a defense-in-depth mechanism to protect against
16 the common web browser bug of you selecting some text but the browser
17 pasting a completely different text, which has some attack potential.
18
19 It can also be useful to prevent you from accidentally pasting large
20 amounts of text.
21
22 DETAILS
23 If a string containing unicode control characters (specifically U+0000
24 .. U+001F currrently) is pasted into the terminal, this extension will
25 ask whether it should be pasted. Strings without control characters get
26 pasted without prompt.
27
28 When a sanitized version is pasted (choice "y"), then contiguous
29 sequences of those control characters will be replaced by a single
30 spaces.
31
32 The exact detection and sanitization algorithm is subject to change in
33 future versions.
34
35
36
379.31 2023-01-03 urxvt-confirm-paste(1)