Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Hang on to the termcap buffer that we have tge...
details: https://anonhg.NetBSD.org/src/rev/94a6c1697e9a
branches: trunk
changeset: 473542:94a6c1697e9a
user: pk <pk%NetBSD.org@localhost>
date: Sun Jun 06 20:43:00 1999 +0000
description:
Hang on to the termcap buffer that we have tgetent() fill.
(someone ows me two hours worth of beer for this... :-)
diffstat:
lib/libcurses/getch.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 69a9b3f8f960 -r 94a6c1697e9a lib/libcurses/getch.c
--- a/lib/libcurses/getch.c Sun Jun 06 20:41:04 1999 +0000
+++ b/lib/libcurses/getch.c Sun Jun 06 20:43:00 1999 +0000
@@ -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
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getch.c 8.2 (Berkeley) 5/4/94";
#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 /* not lint */
@@ -178,7 +178,8 @@
{
int i, j, length;
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;
/* init the inkey state variable */
Home |
Main Index |
Thread Index |
Old Index