Please, remove ^[[200~ when pasting to XFCE terminal emulator...

Do you see adding formatting ^[[200~pasted text~ when pasting to the XFCE terminal emulator useful?

Yes, I need it.
2
29%
No, I don't need it.
5
71%
 
Total votes: 7

Message
Author
Wirtualny
Posts: 124
Joined: Sat Jun 26, 2021 9:46 am

Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#1 Post 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...

User avatar
Jerry3904
Administrator
Posts: 23040
Joined: Wed Jul 19, 2006 6:13 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#2 Post 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.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
ceeslans
Posts: 811
Joined: Sun Apr 14, 2019 3:48 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#3 Post by ceeslans »

or: instead of Ctrl + V --> use Ctrl+Shift + V
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

Wirtualny
Posts: 124
Joined: Sat Jun 26, 2021 9:46 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#4 Post 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.

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#5 Post 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.
" Outside the square , inside the cube "

User avatar
Adrian
Developer
Posts: 8855
Joined: Wed Jul 12, 2006 1:42 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#6 Post 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.

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#7 Post by artytux »

@Adrian oops I didn't know, My thinking was PEBKAC, :lol:
" Outside the square , inside the cube "

Dearth
Posts: 189
Joined: Sun Oct 09, 2022 8:57 am

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#8 Post 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.

mxme

Re: Please, remove ^[[200~ when pasting to XFCE terminal emulator...

#9 Post 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.

Post Reply

Return to “General”