OhmNomNom / thyme

A fork of mintty, for the modern world
GNU General Public License v3.0
0 stars 0 forks source link

Shift+Fn broken (mc) #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It seems pressing Shift+Fn sends wrong keycode.
In midnight commander for example, Shift+F6 brings up rename dialog with target 
path filled with current file name. This does not work currently with mintty. 
Rxvt and system console does not exhibit this problem.

Trying ^V to see what is being sent I've observed following:
1. in rxvt, console:
 F6: ^[[17~
 Shift-F6: ^[[29~
2. in mintty:
 F6: ^[[17~
 Shift-F6: ^[[17;2~

Changing Keys/Mouse modifiers to something other than shift does not help.

Original issue reported on code.google.com by mwisnicki@gmail.com on 6 Oct 2010 at 8:57

GoogleCodeExporter commented 9 years ago
Mintty version is 0.9.1-1 from cygwin.

Original comment by mwisnicki@gmail.com on 6 Oct 2010 at 9:01

GoogleCodeExporter commented 9 years ago
Thanks for looking into this, but you'll find that that's the same keycode as 
in xterm, which of course is what mintty tries to be compatible with. Shift+F6 
doesn't work in mc running in Cygwin xterm either.

Xterm, Konsole and gnome-terminal on my openSUSE install also send the same 
code, yet there Shift+F6 does work. The terminfo entry for Shift+F6 is 'kf18' 
apparently, and that's the same on both systems, i.e. 'tput kf18 | cat -v' with 
TERM=xterm prints '^[[17;2~' on both.

In other words, this looks like an issue specific to the Cygwin version of mc, 
similar to the problem with Shift+arrow at 
http://www.midnight-commander.org/ticket/2307.

Original comment by andy.koppe on 7 Oct 2010 at 5:04