File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,6 +419,7 @@ void sigint_handler(int x){
419419void help (void ){
420420 erase ();
421421 logo ();
422+ nocbreak ();
422423 attron (A_BOLD );
423424 mvprintw (3 ,0 ," **** THE CONTROLS ****" );
424425 attroff (A_BOLD );
@@ -427,20 +428,25 @@ void help(void){
427428 mvprintw (6 ,0 ,"F1 & F2 : Help on controls & gameplay" );
428429 mvprintw (8 ,0 ,"Press a key to continue" );
429430 refresh ();
431+ cbreak ();
430432 getch ();
433+ halfdelay (1 );
431434 erase ();
432435}
433436void gameplay (void ){
434437 erase ();
435438 logo ();
439+ nocbreak ();
436440 attron (A_BOLD );
437441 mvprintw (3 ,0 ," **** THE GAMEPLAY ****" );
438442 attroff (A_BOLD );
439- mvprintw (4 ,0 ,"Catch the cross or overwhelm the\n" );
443+ mvprintw (4 ,0 ,"Move the square and catch the X or outnumber the\n" );
440444 printw ( "white cells with those of your own,\n" );
441445 printw ( "in the environment of Conway's game of life.\n" );
442446 refresh ();
447+ cbreak ();
443448 getch ();
449+ halfdelay (1 );
444450 erase ();
445451}
446452int main (void ){
You can’t perform that action at this time.
0 commit comments