You are not logged in.
I just setup a fresh install, and I've run into a strange issue where whenever I use page-up, page-down or the arrow keys, random characters will be spewed into the terminal. For instance if I open up nano and hold page-down to find something, it will leave a trail of '~'s until I stop. Nano complains of "unknown sequence" whenever it happens. It tends to happen more often if I'm repeating a key quickly, it does not seem to happen at all if I wait a short time between keypresses.
I'm using Fish shell. I've tried changing $TERM from xterm-256color to xterm, linux, and ansi with no effect. I've also made sure my keymap and locales are properly set. Any help at all would be greatly appreciated! I've searched high and low and can't find anything about this specific problem.
Offline
Don't set TERM at all. If you set this manually it is *known* to cause problems just like this.
At the end of your post, you touch on all the right topics, but you've not actually provided any of the relevant diagnostics for those points. Please post the output of the following:
echo $TERM
locale -a
localectl
hostname
hostnamectlDoes this happen using other shells? Do you use fish on both ends of the ssh? What terminal emulator do you use? Have you tried others and/or is this from a tty?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
This only seems to happen when connecting via SSH. Fish is on both ends, yes, but it happens with bash as well. I use Conemu on WSL on the client-- but I have 3 other similar arch installs which work fine using the same setup and settings. I did try using Hyper which didn't seem to have the problem, neither did cmd (clink). Like I said, it only happens when quickly pressing or holding a key though.
[Py-Portable ~]$ echo $TERM
xterm-256color
[Py-Portable ~]$ locale -a
C
en_US.utf8
POSIX
[Py-Portable ~]$ localectl
System Locale: LANG=en_US.UTF-8
VC Keymap: us
X11 Layout: n/a
[Py-Portable ~]$ hostname
Py-Portable
[Py-Portable ~]$ hostnamectl
Static hostname: Py-Portable
Icon name: computer-laptop
Chassis: laptop
Machine ID: fb557c87bb9343f9835a794a461bceb1
Boot ID: 35d164ce25714143bbb73fade6379dc1
Operating System: Arch Linux
Kernel: Linux 4.10.10-1-ARCH
Architecture: x86-64
Last edited by Pyrepenol (Yesterday 08:44:15)
Offline
I think this is more of an Conemu/WSL issue than an Arch Linux one.
Regardless, I suppose this has to do with terminfo. Does TERM have the same value if you SSH into any of the comparable systems? If so, does the file /usr/share/terminfo/x/xterm-256color differ between the two systems? (start by making sure the same version of ncurses is installed on both systems)
EDIT: For clarity's sake, the situation is that there is ONE windows system from which you SSH into MULTIPLE Arch systems, and if you SSH into a specific one of these Arch systems, this behaviour occurs, and not with the others?
Last edited by Steef435 (2017-04-21 18:03:38)
Offline
EDIT: For clarity's sake, the situation is that there is ONE windows system from which you SSH into MULTIPLE Arch systems, and if you SSH into a specific one of these Arch systems, this behaviour occurs, and not with the others?
Exactly. The configuration of each of the arch systems is nearly exactly the same, the only difference being this is my latest install. The only relevant difference I can think of is that i open fish via bash in my other systems and on the one with the issue I open fish directly as the login shell. Maybe that causes some env var to not be set right?
Last edited by Pyrepenol (2017-04-21 18:16:06)
Offline
Could be, I'm not that knowledgeable on SSH to know. You can try setting bash as login shell on the problematic system as well and see if that changes anything. If not, my money is on the terminfo.
Offline