You are not logged in.

#1 2021-01-08 08:55:00

dauriac
Member
Registered: 2019-01-29
Posts: 45

[SOLVED] how to prevent new version of readline to paste '\n' as 0x0a

Hello

since recently the behavior of readline is different. If a '\n' is selected in a cut sequence,
it is now pasted as a 0x0A. I guess it is for security reason, but it is not convenient
for me since I am using copy/paste a lot for example in python.
Is there a way to return to the old behavior ? (possibly with inputrc)

Thank you

dauriac

Last edited by dauriac (2021-01-08 10:07:40)

Offline

#2 2021-01-08 09:10:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: [SOLVED] how to prevent new version of readline to paste '\n' as 0x0a

Please change your title to something that actually reflects your question.

Should be the

man readline wrote:

enable-bracketed-paste (On)
              When set to On, readline will configure the terminal in a way that will enable it 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 can prevent pasted characters from being interpreted as editing
              commands.

option.

Offline

#3 2021-01-08 09:55:16

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: [SOLVED] how to prevent new version of readline to paste '\n' as 0x0a

Thank you
I modified the title.
I didn't find yet a comprehensive explanation of inputrc. Still browsing ...

Offline

#4 2021-01-08 10:07:16

dauriac
Member
Registered: 2019-01-29
Posts: 45

Re: [SOLVED] how to prevent new version of readline to paste '\n' as 0x0a

I added

set enable-bracketed-paste off

in /etc/inputrc
Now everything works as before.
Thanks

Offline

Board footer

Powered by FluxBB