Subject: Re: sushi mysteries
To: None <tech-userlevel@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-userlevel
Date: 01/12/2001 09:59:37
In article <XFMail.010109012108.root@garbled.net>
root@garbled.net writes:

> It's a problem for me anytime I use curses..  Anyone know what this trick is? 
> I can't seem to figure it out..  (these problems didn't manifest themselves
> under ncurses..  obviously something is different here.)

Here's a work-around.
I think the refresh() should not be needed (curses' bug?).

Index: sushi.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/sushi/sushi.c,v
retrieving revision 1.6
diff -u -r1.6 sushi.c
--- sushi.c	2001/01/10 10:00:29	1.6
+++ sushi.c	2001/01/12 00:44:16
@@ -106,6 +106,8 @@
 	}
 
 	initscr();
+	keypad(stdscr, TRUE);
+	refresh();
 	cdkscreen = initCDKScreen(stdscr);
 
 	ioctl(0, TIOCGWINSZ, &ws);