WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Arrow keys for command recall don't work correctly ssh'ed on remote hosts running bash

Open tastle73 opened this issue 10 years ago • 7 comments

To reproduce:

ssh to another host running bash. try to up arrow through your command history and it will either immediately print the escape characters like "[A" for up arrow or it will work initially and then start doing that later or intermittently.

Terminfo/termcap is correct for xterm on these systems.

tastle73 avatar May 23 '16 19:05 tastle73

ash and ksh are problematic too

tastle73 avatar May 23 '16 19:05 tastle73

@tastle73 Which build are you on? (press Windows Key + R, type “winver” into the Run dialog, and press Enter.) There have been a bunch of fixes for some issues involving the arrow keys, but I (and @richturn) want to double check to see if they're in your build yet or if they're an unrelated issue.

zadjii-msft avatar May 23 '16 20:05 zadjii-msft

1511 14342.001

tastle73 avatar May 24 '16 00:05 tastle73

seems to work here for history, though not in some other apps. 1511 14342.1001 see #425

timriker avatar May 25 '16 20:05 timriker

FWIW It works fine on the local session. If I ssh to another system, it sporadically works and other times I just get the escape code on the command line. I wonder if it's related to the tset/tput issue with vi?

tastle73 avatar May 31 '16 14:05 tastle73

Thanks for the discussion.

Closing this issue since:

  1. This issue is old and has likely been fixed since it was opened. If not, please post a new issue in the Console GitHub Repo
  2. This is the WSL issues repo, but this is an issue in Console which has its own Console GitHub Repo
  3. GitHub doesn't allow issues to be moved between repos, preserving posters' identity :(

If you have further asks/issues, please file new issues on our Console GitHub Repo.

bitcrazed avatar May 22 '18 22:05 bitcrazed

I think the fix for #425 fixed this issue as well.

timriker avatar May 22 '18 22:05 timriker