A better completion screen.
This commit is contained in:
parent
c105ed13a0
commit
13dbb8d192
8
main.cpp
8
main.cpp
@ -114,11 +114,17 @@ int main(int argc, char *argv[])
|
|||||||
int middle_h = COLS / 2;
|
int middle_h = COLS / 2;
|
||||||
int middle_v = LINES / 2;
|
int middle_v = LINES / 2;
|
||||||
clear();
|
clear();
|
||||||
|
mvprintw(middle_v - 3, middle_h - 5,
|
||||||
|
"You did it!");
|
||||||
mvprintw(middle_v - 1, middle_h - 10,
|
mvprintw(middle_v - 1, middle_h - 10,
|
||||||
"Time Elapsed: %02dm %02ds\n",
|
"Time Elapsed: %02dm %02ds\n",
|
||||||
elapsed_time / 60, elapsed_time % 60);
|
elapsed_time / 60, elapsed_time % 60);
|
||||||
mvprintw(middle_v + 1, middle_h - 8,
|
mvprintw(middle_v - 0, middle_h - 11,
|
||||||
|
"Questions Answered: %2d\n",
|
||||||
|
problems.size());
|
||||||
|
mvprintw(middle_v + 2, middle_h - 8,
|
||||||
"Press Q to quit.");
|
"Press Q to quit.");
|
||||||
|
box(stdscr, '*', '*');
|
||||||
wrefresh(stdscr);
|
wrefresh(stdscr);
|
||||||
|
|
||||||
while(!(getch() == 'q'))
|
while(!(getch() == 'q'))
|
||||||
|
Loading…
Reference in New Issue
Block a user