Hang on to the termcap buffer that we have tgetent() fill.
(someone ows me two hours worth of beer for this... :-)
This commit is contained in:
parent
9081585e9b
commit
d467771b45
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: getch.c,v 1.10 1999/04/13 14:08:18 mrg Exp $ */
|
/* $NetBSD: getch.c,v 1.11 1999/06/06 20:43:00 pk Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1981, 1993, 1994
|
* Copyright (c) 1981, 1993, 1994
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
|
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: getch.c,v 1.10 1999/04/13 14:08:18 mrg Exp $");
|
__RCSID("$NetBSD: getch.c,v 1.11 1999/06/06 20:43:00 pk Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
|
@ -178,7 +178,8 @@ __init_getch(sp)
|
||||||
{
|
{
|
||||||
int i, j, length;
|
int i, j, length;
|
||||||
keymap_t *current;
|
keymap_t *current;
|
||||||
char termcap[1024], entry[1024], termname[1024], *p;
|
static char termcap[1024];
|
||||||
|
char entry[1024], termname[1024], *p;
|
||||||
key_entry_t *the_key;
|
key_entry_t *the_key;
|
||||||
|
|
||||||
/* init the inkey state variable */
|
/* init the inkey state variable */
|
||||||
|
|
Loading…
Reference in New Issue