mirror of
https://github.com/paxed/dgamelaunch.git
synced 2025-07-31 01:24:43 +02:00
Move screen clears and refreshes into initcurses()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@573 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
16dfad48a4
commit
693eb02d0d
@ -1394,6 +1394,7 @@ freefile ()
|
|||||||
void
|
void
|
||||||
initcurses ()
|
initcurses ()
|
||||||
{
|
{
|
||||||
|
printf("\033[2J");
|
||||||
initscr ();
|
initscr ();
|
||||||
cbreak ();
|
cbreak ();
|
||||||
noecho ();
|
noecho ();
|
||||||
@ -1406,6 +1407,8 @@ initcurses ()
|
|||||||
init_pair(1, -1, -1);
|
init_pair(1, -1, -1);
|
||||||
init_pair(2, COLOR_RED, -1);
|
init_pair(2, COLOR_RED, -1);
|
||||||
#endif
|
#endif
|
||||||
|
clear();
|
||||||
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************* */
|
/* ************************************************************* */
|
||||||
@ -1996,7 +1999,6 @@ editoptions (int game)
|
|||||||
waitpid(editor, NULL, 0);
|
waitpid(editor, NULL, 0);
|
||||||
|
|
||||||
initcurses();
|
initcurses();
|
||||||
refresh ();
|
|
||||||
check_retard(1);
|
check_retard(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,6 @@ term_resize_check()
|
|||||||
|
|
||||||
endwin();
|
endwin();
|
||||||
initcurses();
|
initcurses();
|
||||||
refresh();
|
|
||||||
dgl_local_COLS = COLS;
|
dgl_local_COLS = COLS;
|
||||||
dgl_local_LINES = LINES;
|
dgl_local_LINES = LINES;
|
||||||
curses_resize = 0;
|
curses_resize = 0;
|
||||||
@ -279,8 +278,6 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
|
|||||||
waitpid(child, NULL, 0);
|
waitpid(child, NULL, 0);
|
||||||
idle_alarm_set_enabled(1);
|
idle_alarm_set_enabled(1);
|
||||||
initcurses();
|
initcurses();
|
||||||
clear();
|
|
||||||
refresh();
|
|
||||||
check_retard(1);
|
check_retard(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -379,8 +376,6 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
|
|||||||
|
|
||||||
setproctitle ("%s", me->username);
|
setproctitle ("%s", me->username);
|
||||||
initcurses ();
|
initcurses ();
|
||||||
clear();
|
|
||||||
refresh();
|
|
||||||
check_retard(1); /* reset retard counter */
|
check_retard(1); /* reset retard counter */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user