LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-23-2018, 11:51 AM   #1
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Rep: Reputation: Disabled
Midnight Commander in 14.2: problems with keys


I've upgraded a friends laptop from 14.1 to 14.2. Laptop is Acer Aspire with 8GB and 1.6GHz Ci5-8250U. All packages on all disksets were installed but did not install any from e,f,k,kde, t, and xfce.

Using fluxbox as desktop. Keyboard is US

Everything work just fine except for Midnight Commander.
There is a problem with the '*', '-' (dash) and the '+' (shift =) keys, they are allocated to the file selection dialogs.

Say you are typing something on the command line
of MC (mv -i file1 file2) as soon as you press the dash the 'unselect file' dialog pops up, similarly while typing if you press the '*' key all files are selected, and if you press the '+' you get the 'select files' dialog popup. The '-', '+' are not echoed on the MC command line.

I've never seen this before in any Slackware release even -current on another machine. I cannot find any thread related to this.

Note that the keypad +, -, and * work as expected.

I tried to fix by coping /etc/mc.default.keymap to ~/.config/mc such that:
Select = alt-plus becomes Select = kpplus
Unselect = alt-minus becomes Unselect = kpminus
SelectInvert = alt-asterisk becomes SelectInvert = kpasterisk

This doesn't fix problem.

Problem occurs in a vt (i.e. TERM=linux) as well as in X (TERM=xterm).

These are defined in xterm.
XTERM_LOCALE=en_US
XTERM_SHELL=/bin/bash

Can someone help fix for this please.
 
Old 10-23-2018, 01:20 PM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Unfortunately, I can't offer much help other than to say that this is definitely not a universal problem with 14.2, as it works fine here. Just as a shot in the dark, is the behavior changed at all if you switch to a different terminal emulator (in X)?
 
Old 10-23-2018, 02:19 PM   #3
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Original Poster
Rep: Reputation: Disabled
Quote:
montagdude
Unfortunately, I can't offer much help other than to say that this is definitely not a universal problem with 14.2, as it works fine here. Just as a shot in the dark, is the behavior changed at all if you switch to a different terminal emulator (in X)?
The problem occurs in a regular VT, as well as xterm and rxvt

I agree it is not a universal problem with 14.2, I've never seen this before, and on my -current installation the problem does not occur. I'm looking for a way to redefine those keys in MC but don;t know how
 
Old 10-23-2018, 04:11 PM   #4
philanc
Member
 
Registered: Jan 2011
Posts: 308

Rep: Reputation: 273Reputation: 273Reputation: 273
There is an option which gives this behavior:

edit file ~/.config/mc/ini (not with mc)

locate option
Code:
only_leading_plus_minus
The value should be '1' for the usual behavior. if the value is '0', what you describe happens.

So you should just make sure you have
Code:
only_leading_plus_minus=1
.

Last edited by philanc; 10-23-2018 at 05:41 PM. Reason: typo
 
2 members found this post helpful.
Old 10-23-2018, 07:00 PM   #5
perseus12
Member
 
Registered: Oct 2012
Location: here and there
Distribution: Slackware Current, FreeBSD 12.0, LFS 10.1
Posts: 77

Original Poster
Rep: Reputation: Disabled
[SOLVED] Midnight Commander in 14.2: problems with keys

Hi philanc, you're correct! Thanks for solving it for me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Midnight Commander, F-keys, UTF-8 and ASCII characters not showing correctly Imyrryr Linux - Software 7 01-23-2013 08:39 AM
Midnight Commander F-keys problem. c4c711 Linux - Software 3 05-21-2012 11:56 AM
[SOLVED] Shortcut keys in Midnight Commander xeon123 Linux - Newbie 3 12-22-2010 01:58 PM
midnight commander peterb Ubuntu 1 10-14-2010 09:22 AM
Midnight Commander 4.6.2 (also 4.6.1) - F1 to F12 keys doesnt work dlugasx Solaris / OpenSolaris 1 06-25-2009 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration