upgpkg: sbcl 2.2.9-1
[arch-packages.git] / vi / trunk / navkeys.patch
blob46924379c06471bdcf7fe0959a35fd05fde17df1
1 diff -ru ex-050325/ex_tty.c ex-050325-du/ex_tty.c
2 --- ex-050325/ex_tty.c 2005-03-04 13:42:58.000000000 +0100
3 +++ ex-050325-du/ex_tty.c 2009-06-25 20:06:57.000000000 +0200
4 @@ -132,7 +132,8 @@
5 &ED, &EI, &F0, &F1, &F2, &F3, &F4, &F5, &F6, &F7, &F8, &F9,
6 &HO, &IC, &IM, &IP, &KD, &KE, &KH, &KL, &KR, &KS, &KU, &LL, &ND, &xNL,
7 &xPC, &RC, &SC, &SE, &SF, &SO, &SR, &TA, &TE, &TI, &UP, &VB, &VS, &VE,
8 - &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM
9 + &AL_PARM, &DL_PARM, &UP_PARM, &DOWN_PARM, &LEFT_PARM, &RIGHT_PARM,
10 + &kI, &kD, &kh, &at7, &kP, &kN
12 bool *sflags[] = {
13 &AM, &BS, &DA, &DB, &EO, &HC,
14 @@ -170,7 +171,12 @@
15 addmac1(KD, "j", "down", arrows, 1);
16 addmac1(KL, "h", "left", arrows, 1);
17 addmac1(KR, "l", "right", arrows, 1);
18 - addmac1(KH, "H", "home", arrows, 1);
19 + addmac1(kI, "i", "insert", arrows, 1);
20 + addmac1(kD, "x", "delete", arrows, 1);
21 + addmac1(kh, "^", "home", arrows, 1);
22 + addmac1(at7, "$", "end", arrows, 1);
23 + addmac1(kP, "\x15", "pgup", arrows, 1);
24 + addmac1(kN, "\x04", "pgdn", arrows, 1);
27 * Handle funny termcap capabilities
28 @@ -341,7 +347,7 @@
29 *(*fp++) = flag;
30 namp += 2;
31 } while (*namp);
32 - namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERI";
33 + namp = "albcbtcdceclcmcrcsdcdldmdoedeik0k1k2k3k4k5k6k7k8k9hoicimipkdkekhklkrkskullndnlpcrcscsesfsosrtatetiupvbvsveALDLUPDOLERIkIkDkh@7kPkN";
34 sp = sstrs;
35 do {
36 string = tgetstr(namp, &aoftspace);
37 diff -ru ex-050325/ex_tty.h ex-050325-du/ex_tty.h
38 --- ex-050325/ex_tty.h 2004-12-01 19:21:06.000000000 +0100
39 +++ ex-050325-du/ex_tty.h 2009-06-25 20:06:05.000000000 +0200
40 @@ -183,6 +183,15 @@
41 var bool XX; /* Tektronix 4025 insert line */
42 /* X? is reserved for severely nauseous glitches */
43 /* If there are enough of these we may need bit masks! */
44 +/*
45 + * Insert, Delete, Home, End, PgUp an PgDown keys
46 + */
47 +var char *kI;
48 +var char *kD;
49 +var char *kh;
50 +var char *at7;
51 +var char *kP;
52 +var char *kN;
55 * From the tty modes...