You are not logged in.
Pages: 1
Topic closed
Hello,
When I'm trying to paste a text using Shift + Insert in terminal i'll get weird characters. For example if i'll copy word "test" and then paste it, in the terminal i'll get "0~test1~"
I have tried to paste the word in a text editor (vim) and there everything is okay. I have also tried to use another shell (currently i'm using bash) but i'm still having problems
Please help me with some ideas in order to better understand what is causing this and maybe i will find a way to fix it.
Thank you
Last edited by never2far (2013-12-21 23:18:22)
Offline
How are you copying, and what, to the system clipboard? What terminal are you using?
Offline
Works fine here: select 'text' by pressing and holding LMB, go the urxvt with bash and press Shift+Insert.
Offline
How are you copying, and what, to the system clipboard? What terminal are you using?
I'm copying text using mouse by dragging over a text (the situation is the same on any text) and then Ctrl + Shift + C and to paste ctrl + insert or Ctrl + Shift + V
[root@desk ~]# arch (after selecting text arch on the next line you will see the exact text that i see after Shift + insert)
[root@desk ~]# 0~arch1~
Offline
Is the Ctrl-Shift-c and Ctrl-Shift-v something that your desktop environment manages, because it is not native to the clipboard. As karol says, select the text and then Shift-Insert to paste into a terminal.
Offline
Hello,
I get the same results if i'm using ctrl+shift +c to copy or if i'll just select the text and then shift+insert.
If you need more info here are:
# echo $TERM
xterm-256color
# env
LC_PAPER=en_US.UTF-8
LESS_TERMCAP_mb=
LC_ADDRESS=en_US.UTF-8
XDG_SESSION_ID=2
LC_MONETARY=en_US.UTF-8
LESS_TERMCAP_md=
LESS_TERMCAP_me=
TERM=xterm-256color
SHELL=/bin/bash
HISTSIZE=100000
LC_NUMERIC=en_US.UTF-8
LESS_TERMCAP_ue=
SSH_TTY=/dev/pts/0
USER=root
LC_TELEPHONE=en_US.UTF-8
SSH_AUTH_SOCK=/tmp/ssh-WJrjEKpuaR/agent.681
LESS_TERMCAP_us=
MAIL=/var/spool/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/core_perl
LC_MESSAGES=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
PWD=/root
JAVA_HOME=/usr/lib/jvm/java-7-openjdk/jre
LANG=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
HISTCONTROL=ignoreboth
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
SHLVL=1
HOME=/root
LESS=-R
LOGNAME=root
LESS_TERMCAP_so=
LC_CTYPE=en_US.UTF-8
XDG_RUNTIME_DIR=/run/user/0
LC_TIME=en_US.UTF-8
HISTTIMEFORMAT=%h %d %H:%M:%S
LESS_TERMCAP_se=
LC_NAME=en_US.UTF-8
_=/usr/bin/env
Offline
it seems op is using some bloatware terminal instead of urxvt ;-) and/or is confusing primary and secondary clipboard copy/paste commands.
Last edited by ondoho (2013-12-21 22:47:09)
Offline
Are you using ssh?
Does this happen if you're copy-pasting as a normal user?
Offline
Are you using ssh?
Does this happen if you're copy-pasting as a normal user?
Yes I was using SSH to connect to the server and the problem occurred only from a specific instance of a terminal (I wasn't aware of it until few minutes ago).
After some tests I have closed that problematic terminal (gnome-terminal installed on a Ubuntu machine) and tried another one...the situation never appeared so thank you all for helping me.
Last edited by never2far (2013-12-21 23:20:05)
Offline
In future, please include that sort of detail in your first post; it prevents a lot of wasted time and energy.
Offline
For all having the issue as well and finding this topic through google:
something has enabled 'bracketed paste mode' on your terminal. gnome-terminal (and based on it terminator) does not handle it currently well, see for example:
http://www.midnight-commander.org/ticket/3207
To disable the bracketed paste mode:
printf "\e[?2004l"
(from http://cirw.in/blog/bracketed-paste)
Cures the terminal (gnome-terminal, terminator) immediately for me.
Offline
Experiencing the very same issue occasionally, for last couple of weeks, I guess
Following resolves it:
To disable the bracketed paste mode:
printf "\e[?2004l"
Yet I wonder what is the reason/source for the problem.
I'm using latest Xfce & Xfce terminal from Arch maintainers (i.e. not AUR builds)...
May be someone have have any ideas what has had changed...
The most annoying app I use on a regular basis is Chromium; cannot it be the troublemaker?
Offline
Please don't necrobump, especially solved threads: https://wiki.archlinux.org/index.php/Fo … bumping.22
Closing
Offline
Pages: 1
Topic closed