They could, or they could further escape it in some way that the shell could recognize and handle appropriately. But it's hard to make changes in this space when you have different shells and terminals that need to interoperate.
Some terminals do. The ones I'm absolutely sure about: xterm, termite, alacritty (since 2018), kitty. rxvt doesn't, but you can implement it using its perl exension mechanism.
12
u/mouth_with_a_merc Oct 15 '20
Couldn't terminals prevent pasting the end-of-paste sequence? I can't imagine any legitimate reason to paste that sequence from clipboard...