Re: Remapping keyboard shortcuts

2012-10-02 Andrew Borodin <aborodin vmail ru>:

Hi Andrew

First of all, what version of mc do you use? Show the result of mc -V.

GNU Midnight Commander 4.8.5
Built with GLib 2.32.4
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;

What terminal emulator do you use?

rxvt-unicode (urxvt) v9.15

Show 'echo $TERM'


and 'stty -a'.

speed 38400 baud; rows 55; columns 177; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start 
= ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

What keyboard layout do you use, QWERTY or something else?


I'm not familiar with terminal setup, but seems ctrl-j cannot be
used in mc because it is intercepted by terminal. Terminal gets
ctrl-j and sends NL to the program.

I don't think it's a terminal issue. To verify that I mapped the

To verify that run 'cat' in clear terminal and press keys that you're interested.
Show results here.

ctrl-j: (new line)
ctrl-k: ^K
alt-i: ^[i
alt-o: ^[o

commands alt-i and alt-o to Up and Down. There keys are definitely
interpreted by MC. What I did:

Down = ctrl-j; alt-i
Up = ctrl-k; alt-o

and I removed all other bindings to ctrl-j, ctrl-k, alt-i and alt-o.
The result:

ctrl-j  - prints the highlighted file name on the terminal

What is it? How it looks?

If the cursor (the white marker controlled by the Up and Down keys)
marks the file â/usrâ and I press ctrl-j, then the terminal line
underneath the âHint:â shows

marco netuse:~$ usr

ctrl-k  - apparently nothing
alt-i   - usual mapping (change directory of other panel)
alt-o   - moved the cursor *DOWN* (Note: it is mapped to âUpâ)

That's very strange.

Indeed. ctrl-j behaved different than the others, maybe that's
really a terminal issue, but I don't see any reason for the alt key


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]