4 ms·
> safe-paste I wonder how safe it actually is. Is it possible to escape from the brackets if the clipboard itself contains terminal control characters?
by leni536 4y ago
> safe-paste
I wonder how safe it actually is. Is it possible to escape from the brackets if the clipboard itself contains terminal control characters?
- DHowett 4y agoSome terminal emulators[1] strip control characters (C0, C1 or both) out of clipboard or paste buffer contents when paste bracketing is enabled to avoid exactly this. I believe[2] that xterm is not among them, which presents an argument that those other terminal emulators are not xterm-compatible :) [1] Windows Terminal does for sure [2] citation needed; I tested it a couple years ago and this is practically an anecdote!