Re: xterm, mcedit, ctrl-INS



You can use "Learn Keys" dialog, select Insert and press Ctrl-Insert.
This would remember the sequence for Ctrl-Insert.  Insert should not be
affected unless you used Learn Keys to define it.

I tried, ctrl-INS acts as normal INS. ("o" in the top status bar, changes
when I press ctrl-INS)

Maybe your mc was compiled without X11 support or you don't have DISPLAY
variable defined.  As I said, the code is incomplete.  It's impossible to
put modifiers to the config files yet.  They only can be hardcoded in
src/key.c or read from the OS or X11.

If you want Ctrl-Insert and don't have a working X11 connection from mc to
your X server, apply this patch:

=============================
--- src/key.c
+++ src/key.c
@@ -233,6 +233,7 @@ static key_define_t xterm_key_defines []
     { KEY_M_SHIFT | KEY_LEFT,  ESC_STR "O2D",   MCKEY_NOACTION },
     { KEY_M_CTRL  | KEY_PPAGE, ESC_STR "[5;5~", MCKEY_NOACTION },
     { KEY_M_CTRL  | KEY_NPAGE, ESC_STR "[6;5~", MCKEY_NOACTION },
+    { KEY_M_CTRL  | KEY_IC,    ESC_STR "[2;5~", MCKEY_NOACTION },

     /* rxvt keys with modifiers */
     { KEY_M_SHIFT | KEY_UP,    ESC_STR "[a",  MCKEY_NOACTION },
@@ -245,6 +246,7 @@ static key_define_t xterm_key_defines []
     { KEY_M_CTRL  | KEY_END,   ESC_STR "[8^", MCKEY_NOACTION },
     { KEY_M_SHIFT | KEY_HOME,  ESC_STR "[7$", MCKEY_NOACTION },
     { KEY_M_SHIFT | KEY_END,   ESC_STR "[8$", MCKEY_NOACTION },
+    { KEY_M_CTRL  | KEY_IC,    ESC_STR "[2^", MCKEY_NOACTION },

     { 0, 0, MCKEY_NOACTION },
 };
=============================

Ctrl-Insert will copy selected text to the mc clipboard, like Ctrl-f, but
without questions.  It's not "paste".  To paste, use Shift-F15.

This paragraph is a bit magical for me:
-ctrl-ins doesnt works
-ctrl-f acts as a right arrow

I see.  You are using emacs emulation.  There is no Ctrl-f equivalent in
the emacs mode (I don't know why, I didn't write that code).

-F15? I tried to use "learn keys" for make F15 key, but Shift-new f15
doesnt works. (I checked with F1 and Numerical Home)

Sorry, I meant Shift-F5 (which is the same as F15).

-- 
Regards,
Pavel Roskin



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