Index: files/patch-termcap.c =================================================================== --- files/patch-termcap.c (revision 515857) +++ files/patch-termcap.c (working copy) @@ -1,15 +1,32 @@ ---- termcap.c.orig Wed Jul 5 16:33:30 2000 -+++ termcap.c Wed Oct 11 05:40:12 2000 -@@ -355,11 +355,7 @@ - if (D_CG0) - { - if (D_CS0 == 0) --#ifdef TERMINFO -- D_CS0 = "\033(%p1%c"; --#else -- D_CS0 = "\033(%."; --#endif -+ D_CS0 = "\033(%p1%c"; /* Old ncurses can't handle %. */ - if (D_CE0 == 0) - D_CE0 = "\033(B"; - D_AC = 0; +--- termcap.c.orig 2019-10-28 12:59:36 UTC ++++ termcap.c +@@ -38,7 +38,6 @@ extern struct NewWindow nwin_undef, nwin + extern int force_vt; + extern int hardstatusemu; + #ifdef MAPKEYS +-extern char *kmapdef[]; + extern struct action umtab[]; + extern struct action mmtab[]; + extern struct action dmtab[]; +@@ -48,6 +47,7 @@ extern int kmap_extn; + extern int DefaultEsc; + #endif + ++ + static void AddCap __P((char *)); + static void MakeString __P((char *, char *, int, char *)); + static char *findcap __P((char *, char **, int)); +@@ -224,11 +224,8 @@ int he; + if ((D_EA && InStr(D_EA, "\033(B")) || (D_AS && InStr(D_AS, "\033(0"))) + D_CG0 = 1; + if (InStr(D_termname, "xterm") || InStr(D_termname, "rxvt") || +- (D_CKM && (InStr(D_CKM, "\033[M") || InStr(D_CKM, "\033[<")))) +- { +- D_CXT = 1; +- kmapdef[0] = SaveStr(D_CKM); +- } ++ (D_CKM && InStr(D_CKM, "\033[M"))) ++ D_CXT = 1; + /* "be" seems to be standard for xterms... */ + if (D_CXT) + D_BE = 1;