From 13dbb8d192f285eff6f4835fe6b3470f77f616a2 Mon Sep 17 00:00:00 2001 From: David Vereb Date: Tue, 10 Mar 2020 16:19:19 -0400 Subject: [PATCH] A better completion screen. --- main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index d0f5108..56ed5e9 100644 --- a/main.cpp +++ b/main.cpp @@ -114,11 +114,17 @@ int main(int argc, char *argv[]) int middle_h = COLS / 2; int middle_v = LINES / 2; clear(); + mvprintw(middle_v - 3, middle_h - 5, + "You did it!"); mvprintw(middle_v - 1, middle_h - 10, "Time Elapsed: %02dm %02ds\n", 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."); + box(stdscr, '*', '*'); wrefresh(stdscr); while(!(getch() == 'q'))