You are not logged in.

#1 2021-02-17 14:36:05

Flemur
Member
Registered: 2012-05-24
Posts: 72

Strange cut/paste carriage-return terminal behavior [SOLVED]

Hi - I recently installed Arch with fluxbox WM and have a strange issue with:

-- copy/paste behavior in terminals,  IF I include the "carriage-return" (line-feed?) in the copy: when pasted, the text stays hi-lighted and the cursor moves to the next line, but the command isn't executed until I hit an additional CR, as in the picture.

Also, my PS1 is the PWD, and if (PS1 + copied text) is wider than the terminal,  it's pasted over the PS1 prompt and also over itself, like it wraps around without going to the next line.  It looks bad!

The behavior is the same with gnome-terminal, lxterminal, and terminator.

Picture shows "cat" command copied to the end of its line, then pasted (blurred area=username):
Terminal text

Edit: solution, from V1del:
Add the line
set enable-bracketed-paste off
to file /etc/inputrc (I added it as the last line, after a $endif)

Last edited by Flemur (2021-02-17 14:51:08)


"If you do not change direction, you may end up where you are heading." -- L.T.

Offline

#2 2021-02-17 14:42:57

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

Re: Strange cut/paste carriage-return terminal behavior [SOLVED]

Offline

#3 2021-02-17 14:51:29

Flemur
Member
Registered: 2012-05-24
Posts: 72

Re: Strange cut/paste carriage-return terminal behavior [SOLVED]

That fixed it, thanks!


"If you do not change direction, you may end up where you are heading." -- L.T.

Offline

Board footer

Powered by FluxBB