Re: AMC patches ported to mc-2006-02-03-13.tar.gz



On Sun, 5 Feb 2006, Arpi wrote:

> > On Sun, 5 Feb 2006, Arpi wrote:
> >
> > > more-xterm-keycodes.patch
> > >     xterm codes for Shift + Pageup/Pagedown
> > >     and some cosmetics (grouping same keys with different modifiers together)
> >
> >
> > Which terminal emulator generates those sequences ? I've just tried
> > xterm 6.8.2.0(202) under Cygwin and Shift + PgUp/PgDn doesn't output
> > anything on the screen.
> >
>
> iTerm on MAC OSX, it's xterm compatible anyway (at least it sets TERM=xterm
> and outputs the other codes same as xterm)
>
> anyway these codes has the same logic as the other modifier key seqs.

The following patch was commited:

Index: src/ChangeLog
===================================================================
RCS file: /cvsroot/mc/mc/src/ChangeLog,v
retrieving revision 1.1798
diff -u -p -r1.1798 ChangeLog
--- src/ChangeLog	4 Feb 2006 14:41:41 -0000	1.1798
+++ src/ChangeLog	5 Feb 2006 15:25:12 -0000
@@ -1,3 +1,7 @@
+2006-02-05  Arpad Gereoffy (A'rpi)  <arpi mplayerhq hu>
+
+	* key.c (xterm_key_defines): Add sequences for iTerm.
+
 2006-02-04  Roland Illig  <roland illig gmx de>

 	* find.c: Added make_fullname() to avoid code duplication.
Index: src/key.c
===================================================================
RCS file: /cvsroot/mc/mc/src/key.c,v
retrieving revision 1.86
diff -u -p -r1.86 key.c
--- src/key.c	7 Jan 2006 12:49:08 -0000	1.86
+++ src/key.c	5 Feb 2006 15:25:12 -0000
@@ -304,6 +304,10 @@ static key_define_t xterm_key_defines []
     { KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "O6C", MCKEY_NOACTION },
     { KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT,  ESC_STR "O6D", MCKEY_NOACTION },

+    /* iTerm */
+    { KEY_M_SHIFT | KEY_PPAGE, ESC_STR "[5;2~", MCKEY_NOACTION },
+    { KEY_M_SHIFT | KEY_NPAGE, ESC_STR "[6;2~", MCKEY_NOACTION },
+
     /* keypad keys */
     { KEY_IC,                  ESC_STR "Op",  MCKEY_NOACTION },
     { KEY_DC,                  ESC_STR "On",  MCKEY_NOACTION },



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