WSL icon indicating copy to clipboard operation
WSL copied to clipboard

midnight commander arrow keys

Open trapframe opened this issue 10 years ago • 9 comments

'apt-get install mc' is succefull running 'mc' show the midnight commander interface but when trying to move using the arrow keys nothing append

trapframe avatar Apr 07 '16 11:04 trapframe

Same experience here, except that arrow keys work sporadically - sometimes they work fine, other times nothing happens. MC's Learn Keys function doesn't help - they work fine there.

jernejs avatar Apr 07 '16 11:04 jernejs

I'm having the same in Emacs - and then upon exit in BASH itself - arrow keys just go "dead"

jbaribeault avatar Apr 07 '16 21:04 jbaribeault

Same issue with keyboard here.

tutnes avatar Apr 08 '16 08:04 tutnes

I actually managed to fix it using Learn Keys. Here's the part of the ~/.config/mc/ini file that's responsible for that (edit it with vi, mcedit somehow doesn't save changes to this file).

Add to ~/.config/mc/ini:

[terminal:xterm]
up=\\e[A
down=\\e[B
left=\\e[D
right=\\e[C

yschapov avatar Apr 14 '16 15:04 yschapov

I also confirm that mc cursor keys work in ConEmu build 160416, launched as conemu64.exe bash -new_console:p without altering the config.

yschapov avatar Apr 17 '16 19:04 yschapov

Still actual for build 14328 (was 14251) even after reinstalling lxrun - guess linux subsystem wasn't really updated this time.

yschapov avatar Apr 23 '16 11:04 yschapov

Still actual for build 14332

oddtwelve avatar Apr 28 '16 06:04 oddtwelve

Working on a fix.

bitcrazed avatar Apr 28 '16 20:04 bitcrazed

I've verified this is fixed in 14366.

benhillis avatar Jun 17 '16 18:06 benhillis