Skip to content

Commit 0129cb4

Browse files
author
Your Name
committed
help page
1 parent 16b1c58 commit 0129cb4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

redsquare.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ void sigint_handler(int x){
419419
void 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
}
433436
void 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
}
446452
int main(void){

0 commit comments

Comments
 (0)