Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/menuc Make this work again now that curses no longer...
details: https://anonhg.NetBSD.org/src/rev/4b433fabcc13
branches: trunk
changeset: 485242:4b433fabcc13
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sat Apr 22 21:34:25 2000 +0000
description:
Make this work again now that curses no longer does an implicit tgetent()
via initscr() by calling t_getstr() with curses' internal terminal info
initialized in setterm() (which is called by initscr()).
XXX THIS IS A HORRIBLE KLUDGE! ...and I'm almost embarassed to commit it.
XXX It really should be fixed by using normal curses facilities.
diffstat:
usr.bin/menuc/menu_sys.def | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 6f2c3df6362d -r 4b433fabcc13 usr.bin/menuc/menu_sys.def
--- a/usr.bin/menuc/menu_sys.def Sat Apr 22 21:14:19 2000 +0000
+++ b/usr.bin/menuc/menu_sys.def Sat Apr 22 21:34:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: menu_sys.def,v 1.21 1999/06/20 20:21:03 cgd Exp $ */
+/* $NetBSD: menu_sys.def,v 1.22 2000/04/22 21:34:25 thorpej Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -146,12 +146,20 @@
static void init_keyseq (void)
{
+ /*
+ * XXX XXX XXX THIS SHOULD BE NUKED FROM ORBIT! DO THIS
+ * XXX XXX XXX WITH NORMAL CURSES FACILITIES!
+ */
+ extern struct tinfo *_cursesi_genbuf;
+
int i;
+
for (i=0; i<_mc_num_key_seq; i++) {
if (_mc_key_seq[i].termcap_name)
_mc_key_seq[i].chars =
- tgetstr (_mc_key_seq[i].termcap_name,
- &str_ptr);
+ t_getstr (_cursesi_genbuf,
+ _mc_key_seq[i].termcap_name,
+ &str_ptr, NULL);
if (_mc_key_seq[i].chars != NULL &&
(_mc_key_seq[i].numchars = strlen(_mc_key_seq[i].chars))
> 0)
Home |
Main Index |
Thread Index |
Old Index