msknathan / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Ctrl + PageUp/PageDown do not work in MC #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. You'd have to start MC to reproduce that, obviously...

What is the expected output? What do you see instead?
Ctrl+Page Up should pop a directory up from current path, while Ctrl + Page 
Down should navigate to selected folder. Both hotkeys do not work for me in 
mintty.

What versions of mintty, Cygwin/MSYS, and Windows are you using?
I'd installed cygwin 2.763, now using mintty 1.0.3 and mc 4.7.5.6. This is 
windows 7, not sure what flavor of it. 64bit OS if this matters.

Please provide any additional information below.
Well. I am not enlightened as to how I proceed with fixing this. When I simply 
run bash in mintty and strike the combinations I see ;5~ on Ctrl+PgUp and ;5~ 
on Ctrl+PgDown, while the same bash in my ubuntu/xfce4-terminal (where MC 
reacts on these hotkeys) shows me 5~ for Ctrl+PgUp and ;5~ for Ctrl+PgDown. 
This may be some bug in term env. variable (which I did not change, and now 
TERM=xterm), or some incomplete key mapping setup (not sure where to assess 
this one). Any pointers are greatly appreciated.

Original issue reported on code.google.com by akraievoy on 23 Mar 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Well `the same bash` is not completely correct statement. I just fire up the 
shell on both workstations, but setup and versioning obviously do differ alot.

Original comment by akraievoy on 23 Mar 2012 at 12:23

GoogleCodeExporter commented 9 years ago
I'm afraid it's a problem with mc. There's something wrong with how it 
processes the terminfo data for those key combinations, because the weird thing 
is that if you set TERM to the wrong terminal with different keycodes, e.g. 
rxvt, those key combinations do work. But then of course other things will 
break.

I've previously reported this at 
https://www.midnight-commander.org/ticket/2307. You might want to raise this on 
the Cygwin mailing list actually now that mc has a Cygwin maintainer again.

Original comment by andy.koppe on 29 Mar 2012 at 5:03

GoogleCodeExporter commented 9 years ago
A workaround consists in running mc under screen. There's a drawback however: 
mouse is not supported. But if you value more good keyboard support, it's a 
trade-off, and screen brings some other usefull features...

Original comment by eric.leb...@gmail.com on 4 Mar 2015 at 2:33