Lines 1-15
Link Here
|
1 |
--- termcap.c.orig Wed Jul 5 16:33:30 2000 |
1 |
--- termcap.c.orig 2019-10-28 12:59:36 UTC |
2 |
+++ termcap.c Wed Oct 11 05:40:12 2000 |
2 |
+++ termcap.c |
3 |
@@ -355,11 +355,7 @@ |
3 |
@@ -38,7 +38,6 @@ extern struct NewWindow nwin_undef, nwin |
4 |
if (D_CG0) |
4 |
extern int force_vt; |
5 |
{ |
5 |
extern int hardstatusemu; |
6 |
if (D_CS0 == 0) |
6 |
#ifdef MAPKEYS |
7 |
-#ifdef TERMINFO |
7 |
-extern char *kmapdef[]; |
8 |
- D_CS0 = "\033(%p1%c"; |
8 |
extern struct action umtab[]; |
9 |
-#else |
9 |
extern struct action mmtab[]; |
10 |
- D_CS0 = "\033(%."; |
10 |
extern struct action dmtab[]; |
11 |
-#endif |
11 |
@@ -48,6 +47,7 @@ extern int kmap_extn; |
12 |
+ D_CS0 = "\033(%p1%c"; /* Old ncurses can't handle %. */ |
12 |
extern int DefaultEsc; |
13 |
if (D_CE0 == 0) |
13 |
#endif |
14 |
D_CE0 = "\033(B"; |
14 |
|
15 |
D_AC = 0; |
15 |
+ |
|
|
16 |
static void AddCap __P((char *)); |
17 |
static void MakeString __P((char *, char *, int, char *)); |
18 |
static char *findcap __P((char *, char **, int)); |
19 |
@@ -224,11 +224,8 @@ int he; |
20 |
if ((D_EA && InStr(D_EA, "\033(B")) || (D_AS && InStr(D_AS, "\033(0"))) |
21 |
D_CG0 = 1; |
22 |
if (InStr(D_termname, "xterm") || InStr(D_termname, "rxvt") || |
23 |
- (D_CKM && (InStr(D_CKM, "\033[M") || InStr(D_CKM, "\033[<")))) |
24 |
- { |
25 |
- D_CXT = 1; |
26 |
- kmapdef[0] = SaveStr(D_CKM); |
27 |
- } |
28 |
+ (D_CKM && InStr(D_CKM, "\033[M"))) |
29 |
+ D_CXT = 1; |
30 |
/* "be" seems to be standard for xterms... */ |
31 |
if (D_CXT) |
32 |
D_BE = 1; |