copy-paste bug/issue with LXTerminal

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
einpoklum
Level 1
Level 1
Posts: 26
Joined: Sat Dec 24, 2016 5:14 am
Location: Amsterdam

copy-paste bug/issue with LXTerminal

Post by einpoklum » Wed Nov 01, 2017 5:10 pm

I use LXTerminal 0.2.0 in Mint 18.2.

Many times when I paste text into the terminal, instead of getting

Code: Select all

my pasted text
, I end up with

Code: Select all

~0my pasted text~1
. This is extremely annoying!

I found this page on unix.stackexchange.com, which suggests a workaround, but that workaround is problematic in that you have to know when it's appropriate to issue it and when it isn't. The web page also says:
The issue is that your terminal is in bracketed paste mode, but doesn’t seem to support it properly. The issue was fixed in VTE, but xfce4-terminal is still using an old and unmaintained version of it.
I'm guessing the same is true for LXTerminal.

Is there a possibility to patch LXTerminal 0.2.0 to fix this? Or perhaps even update to a new version of it if the issue has been fixed upstream?

User avatar
einpoklum
Level 1
Level 1
Posts: 26
Joined: Sat Dec 24, 2016 5:14 am
Location: Amsterdam

Re: copy-paste bug/issue with LXTerminal

Post by einpoklum » Wed Nov 01, 2017 7:20 pm

The workaround I currently use is adding the following to my ~/.profile:

Code: Select all

# Leave "bracketed paste" mode; see:
# https://unix.stackexchange.com/a/196574/34868
[[ -t 0 && -t 1 ]] && printf "\e[?2004l"

Post Reply

Return to “Software & Applications”