[konsole] [Bug 89299] prevent paste of newline characters

Andreas Nordal bugzilla_noreply at kde.org
Sat Jun 11 14:07:23 BST 2022


https://bugs.kde.org/show_bug.cgi?id=89299

--- Comment #70 from Andreas Nordal <andreas_nordal_4 at hotmail.com> ---
> Do you know if there’s a way to ask the program if it supports bracketed paste?
The program tells the terminal:

    printf "\e[?2004h"  # Enable bracketed paste
    printf "\e[?2004l"  # Disable bracketed paste

It's initially off (because the terminal can't assume the program supports it).
Konsole apparently understands this (whereas weston-terminal does not).
I can verify this by running those commands in bash (which doesn't enable it
after every command, at least by default).

Apropos terminal support:
> Bracketed-paste isn't a Konsole feature, it's a BASH feature
It's necessarily a protocol between the two: Something has to bracket the
paste, and it's the terminal (that implements pasting) that has a chance to
distinguish it from the enter key.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list