Ticket #203 (closed defect: fixed)

Opened 11 years ago

Last modified 10 years ago

The keypad doesn't work correct under the putty

Reported by: angel_il Owned by: angel_il
Priority: major Milestone: 4.6.2
Component: mc-core Version: 4.6.1
Keywords: vote-slyfox vote-slavazanko approved committed-master committed-mc-4.6 Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description (last modified by slavazanko) (diff)

"mc" started in putty terminal doesn't understand keypad keys
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.

Attachments

keypad.patch (365 bytes) - added by angel_il 11 years ago.
"fix: mc started in putty terminal doesn't understand keypad keys (ticket#203)

Change History

comment:1 Changed 11 years ago by slavazanko

  • Description modified (diff)

comment:2 Changed 11 years ago by angel_il

to
main.c

...
main (int argc, char **argv)
...
    int save_old_esc_mode = old_esc_mode;
    int save_alternate_plus_minus  = alternate_plus_minus;
    old_esc_mode = 0;.
    alternate_plus_minus = 1;.
    application_keypad_mode ();
    old_esc_mode = save_old_esc_mode;
    alternate_plus_minus = save_alternate_plus_minus;
    if (!alternate_plus_minus)
        numeric_keypad_mode ();

comment:3 Changed 11 years ago by slavazanko

  • Description modified (diff)

Changed 11 years ago by angel_il

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

comment:4 Changed 11 years ago by angel_il

  • Keywords rewiew added
  • Milestone changed from 4.7 to 4.6.2

please review

comment:5 Changed 11 years ago by angel_il

  • Status changed from new to accepted
  • Owner set to angel_il

comment:6 Changed 11 years ago by slyfox

  • Keywords vote-slyfox added; keypad rewiew removed

Yes, without this patch configured putty (encoding: UTF-8, Terminal: Linux) does not handle keypad properly. With it all is OK.

My vote!

comment:7 Changed 11 years ago by slavazanko

  • Keywords vote-slavazanko approved added

I tested this fix. In Linu work don't corrupt, in putty under Windows keypad works correctly.

My vote here

comment:8 Changed 11 years ago by winnie

  • Status changed from accepted to testing
  • Keywords committed-master committed-mc-4.6 added
  • Resolution set to fixed

I've committed this small fix

comment:9 Changed 11 years ago by winnie

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.