Ticket #203: keypad.patch

File keypad.patch, 365 bytes (added by angel_il, 16 years ago)

"fix: mc started in putty terminal doesn't understand keypad keys (ticket#203)

  • src/main.c

    diff --git a/src/main.c b/src/main.c
    index de9aec0..624df71 100644
    a b update_xterm_title_path (void) 
    16141614            if (!is_printable ((unsigned char) *s)) 
    16151615                *s = '?'; 
    16161616        } while (*++s); 
     1617        if (!alternate_plus_minus) 
     1618            numeric_keypad_mode (); 
    16171619        fprintf (stdout, "\33]0;mc - %s\7", p); 
    16181620        fflush (stdout); 
    16191621        g_free (p);