Page 1 of 1
Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 4:59 am
by Wirtualny
Please, good guys, remove adding formatting when pasting text to the XFCE terminal emulator.
Is there any serious reason for pasting such a "thing" -> ^[[200~ ~ to the terminal? I remove it all the time...
Yes, I know it's possible to avoid it, but it consumes user attention for stupidity...
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 6:17 am
by Jerry3904
The default terminal is not set up for the use of the desktop shortcut Ctrl + V, if that's what you're using. The normal way is to right-click the location you want to use > Context menu and select "paste"; there an option that I have never tried in Preferences > Advanced to change the right-click behavior to paste the clipboard's contents.
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 6:20 am
by ceeslans
or: instead of Ctrl + V --> use Ctrl+Shift + V
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 6:45 am
by Wirtualny
Yes, I have mentioned that I know that it's avoidable, but why keep problems (from the point of usability) and teach people how they can avoid them? Is there any pragmatic or religious reason to keep it like this out of the box?
I suspect the reason. From the position of the code, and programmers it's logical and consistent with other similar behaviors, so let's keep it like this. Users should not be lazy and keep in their minds the solution. Am I right?
BTW: Possibly I have ADHD, even though I'm not formally diagnosed, but on my computer I always try to automate what is possible to save my poor attention for crucial things.
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 6:56 am
by artytux
I found that depends on how I do the copy if I include the blank space at the start (easily done) it does throw in that (-> ^[[200~ ~ into the terminal), That blank space for me anyway is the self inflicted cause.
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 7:04 am
by Adrian
It's called "bracketed paste" see this
https://cirw.in/blog/bracketed-paste
I think you can disable if you add "set enable-bracketed-paste off" to your ~/.inputrc.
enable-bracketed-paste
When set to ‘On’, Readline configures the terminal to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This is called putting the terminal into bracketed paste mode; it prevents Readline from executing any editing commands bound to key sequences appearing in the pasted text. The default is ‘On’.
So if you don't need that go ahead and disable it.
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Fri Aug 09, 2024 7:17 am
by artytux
@Adrian oops I didn't know, My thinking was PEBKAC,

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Tue Aug 27, 2024 3:29 am
by Dearth
Adrian wrote: Fri Aug 09, 2024 7:04 am
It's called "bracketed paste" see this
https://cirw.in/blog/bracketed-paste
I think you can disable if you add "set enable-bracketed-paste off" to your ~/.inputrc.
enable-bracketed-paste
When set to ‘On’, Readline configures the terminal to insert each paste into the editing buffer as a single string of characters, instead of treating each character as if it had been read from the keyboard. This is called putting the terminal into bracketed paste mode; it prevents Readline from executing any editing commands bound to key sequences appearing in the pasted text. The default is ‘On’.
So if you don't need that go ahead and disable it.
Can this be perhaps added to the MX Tweak tool like for example disabling the single click behaviour?
I mean not only for XFCE but also KDE Plasma.
Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...
Posted: Sat Oct 05, 2024 4:18 am
by mxme
Wirtualny wrote: Fri Aug 09, 2024 4:59 am
Please, good guys, remove adding formatting when pasting text to the XFCE terminal emulator.
Is there any serious reason for pasting such a "thing" -> ^[[200~ ~ to the terminal? I remove it all the time...
Yes, I know it's possible to avoid it, but it consumes user attention for stupidity...
artytux wrote: Fri Aug 09, 2024 6:56 am
I found that depends on how I do the copy if I include the blank space at the start (easily done) it does throw in that (-> ^[[200~ ~ into the terminal), That blank space for me anyway is the self inflicted cause.
edit - just read your post propery and I think that might be what causes it, I though t it was something else.