From ea5cfade553f113a0b13ccc0146854ec78198eaf Mon Sep 17 00:00:00 2001 From: Patrick Winnertz Date: Mon, 26 Jan 2009 16:21:06 +0100 Subject: [PATCH] Add code snipplet by il.smind which should fix issues with putty and mc (mc over ssh on a putty console) - to reproduce try this: 1) run 'putty'; login to remote host 2) run mc 3) press key '/' on keypad. You will see menu that is called when you press the F2 4) Go to 'Learn keys' (simple call dialog) 5) just exit from 'learn keys' dialog (without any changes) 6) 3) press key '/' on keypad again. You will see '/' symbol in command line. --- src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.c b/src/main.c index 14a13b732..f32390591 100644 --- a/src/main.c +++ b/src/main.c @@ -1617,6 +1617,8 @@ update_xterm_title_path (void) if (!is_printable ((unsigned char) *s)) *s = '?'; } while (*++s); + if (!alternate_plus_minus) + numeric_keypad_mode (); fprintf (stdout, "\33]0;mc - %s\7", p); fflush (stdout); g_free (p);