blob: 2a344163e855fc8f188b957a42444ea0fe1d6e1d (
plain)
1 diff -Nru aterm-1.0.1.orig/src/command.c aterm-1.0.1/src/command.c
2 --- aterm-1.0.1.orig/src/command.c 2007-08-03 11:20:28.000000000 +0200
3 +++ aterm-1.0.1/src/command.c 2007-08-03 11:21:53.000000000 +0200
4 @@ -1869,28 +1869,18 @@
5 }
6 break;
7
8 - case XK_F1: /* "\033OP" */
9 - case XK_F2: /* "\033OQ" */
10 - case XK_F3: /* "\033OR" */
11 - case XK_F4: /* "\033OS" */
12 - len = 3;
13 - STRCPY(kbuf, "\033OP");
14 - kbuf[2] += (keysym - XK_F1);
15 - break;
16 -
17 #define FKEY(n, fkey) \
18 len = 5; \
19 sprintf((char *) kbuf,"\033[%02d~", (int)((n) + (keysym - fkey)))
20 -#if 0 /* old style keymappings : */
21 case XK_F1: /* "\033[11~" */
22 case XK_F2: /* "\033[12~" */
23 case XK_F3: /* "\033[13~" */
24 case XK_F4: /* "\033[14~" */
25 - FKEY(11, XK_F1);
26 + FKEY(11, XK_F1);
27 break;
28 -#endif
29 +
30 case XK_F5: /* "\033[15~" */
31 - FKEY(15, XK_F5);
32 + FKEY(15, XK_F5);
33 break;
34
35 case XK_F6: /* "\033[17~" */
|