Re: Ctrl-A, Ctrl-E have no effect
- From: Graham Lawrence <gl00637 gmail com>
- To: Paul Sokolovsky <pmiscml gmail com>, mc-devel gnome org
- Subject: Re: Ctrl-A, Ctrl-E have no effect
- Date: Sun, 14 Dec 2014 09:52:20 -0800
Actually, I do seem to have the problem solved, and also to have achieved something I did not think possible, completely consistent keystroke behavior across the three apps I use most, vim lynx and mc, within both screen and fluxbox.
The problem with mc seemed to derive from that it has multiple configuration files, in /etc, /root, /usr/share, and ~/.config, and I believe these are hierarchical, that is you cannot change behavior lower down that hierarchy if it was defined differently at a higher level.
So I destroyed every mc directory except that in /etc, and worked with that to get the results I wanted. Another complication was that, in xterm, Alt+ key combos produce accented (8 bit ascii characters) instead of whatever control function one expected. Although that behavior can be prevented in xterm, I found it more expedient to keep it, and not use Alt+ combinations at all.
Back in mc.keymap, apparently you can specify any key combo you want, and mc will respond to it, so long as there are no other complicating factors such as I have described. So now I have Ctrl+A for Home, Ctrl+E for End, Ctrl+F for PageDown and Ctrl+B for PageUp, identically in vim, lynx and mc, and Ctrl+z <window Number> to switch between apps in both screen and fluxbox.
Once the appropriate behavior was obtained in mc, I simply copied the mc directories in /etc and /root (this one does not contain mc.keymap, but an ini file and a filepath hotkey list and a couple of others whose purpose I did not determine) into /usr and ~/.config respectively, and I now have completely identical behavior from mc both as user and as root.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]