Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keypad 5 input freeze #3651

Closed
mc-butler opened this issue Jun 3, 2016 · 2 comments
Closed

keypad 5 input freeze #3651

mc-butler opened this issue Jun 3, 2016 · 2 comments
Labels
area: tty Interaction with the terminal, screen libraries prio: low Minor problem or easily worked around ver: 4.8.17 Reproducible in version 4.8.17

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3651
Reporter igor2 (mc@….repo.hu)
Keywords keypad, KP_5, KP_BEGIN, freeze, escape, sequence, terminal, control

Pressing keypad 5 (while numlock is off) on the linux console or on xterm makes mc stop reading the input for a second or two.

Cause: unrecognized escape sequence - mc tries to read (using timed reads) until the sequence is over.

Proposed solution: teach mc KP_5 (some sources call it KP_BEGIN or KP_CLEAR). I tried to add it in /usr/share/mc/mc.lib but that didn't work. Sequence on the Linux console on PC:
e[G and on xterm:
e[E

As a test I applied the patch attached - it is probably not the proper solution but fixed the problem for me on the console.

mc version affected: 4.8.15, 4.8.17; I think this problem was not present in the 4.7 series.

GNU Midnight Commander 4.8.15
Built with GLib 2.46.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ext2undelfs, ftpfs, sftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by igor2 (mc@….repo.hu) on Jun 3, 2016 at 2:51 UTC

proof of concept patch for the Linux console (workaround)

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jun 3, 2016 at 11:44 UTC (comment 1)

  • Resolution set to duplicate
  • Milestone Future Releases deleted
  • Status changed from new to closed

Closed as duplicate of #3136.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: low Minor problem or easily worked around ver: 4.8.17 Reproducible in version 4.8.17
Development

No branches or pull requests

1 participant