Minor fix for heartbeat function...

This commit is contained in:
ddouthitt
2001-10-05 17:17:11 +00:00
parent 50cdea1134
commit 709e53495e
+9 -2
View File
@@ -211,14 +211,21 @@ curses_drv_init (struct lcd_logical_driver *driver, char *args)
initscr (); initscr ();
cbreak (); cbreak ();
noecho (); noecho ();
nodelay (stdscr, TRUE);
nonl (); nonl ();
nodelay (stdscr, TRUE);
intrflush (stdscr, FALSE); intrflush (stdscr, FALSE);
keypad (stdscr, TRUE); keypad (stdscr, TRUE);
lcd_win = newwin(curses_drv->hgt + 2, lcd_win = newwin(curses_drv->hgt + 2,
curses_drv->wid + 2, curses_drv->wid + 2,
screen_begy, screen_begy,
screen_begx); screen_begx);
//nodelay (lcd_win, TRUE);
//intrflush (lcd_win, FALSE);
//keypad (lcd_win, TRUE);
curs_set(0); curs_set(0);
if (has_colors()) { if (has_colors()) {
@@ -524,7 +531,7 @@ curses_drv_icon (int which, char dest)
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Does the heartbeat... // Does the heartbeat...
// //
static void void
curses_drv_heartbeat (int type) curses_drv_heartbeat (int type)
{ {
static int timer = 0; static int timer = 0;