Re: Remapping keyboard shortcuts

2012-10-02 Thread Marco
2012-10-01 Andrew Borodin aboro...@vmail.ru:

Hi Andrew

 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
commands alt-i and alt-o to Up and Down. There keys are definitely
interpreted by MC. What I did:

[panel]
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
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”)

I can't make sense of this behaviour. This seems not
terminal-related. Correct me if I'm wrong.

 Command line has priority over panel. If you want use some key
 bindings in panel you must unbind that keys in the [input]
 section.

What is the proper way of unbinding? Deleting the entire entry,
setting it empty (e.g. Down = )?


Marco

___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Remapping keyboard shortcuts

2012-10-02 Thread Andrew Borodin
On Tue, 2 Oct 2012 09:23:08 +0200 Marco wrote:

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

What terminal emulator do you use? Show 'echo $TERM' and 'stty -a'.

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.

 commands alt-i and alt-o to Up and Down. There keys are definitely
 interpreted by MC. What I did:
 
 [panel]
 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?

 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.

 What is the proper way of unbinding? Deleting the entire entry,
 setting it empty (e.g. Down = )?

Set empty.

-- 
Andrew
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Remapping keyboard shortcuts

2012-10-02 Thread Marco
2012-10-02 Andrew Borodin aboro...@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'

rxvt-unicode-256color

 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?

QWERTZ

   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:
  
  [panel]
  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
weirdness.


Marco

___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc