From 023960695fe4ef135614df95c485f0c01955ba32 Mon Sep 17 00:00:00 2001 From: Aidan Haas <94150901+ahaas25@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:25:56 -0400 Subject: [PATCH] Fix end screen rolling off terminal --- README.md | 2 ++ typing_test.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index d93e0cf..b64cc5d 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ * Download source files * Install ncurses (If not already installed) + * On Debian Systems: ```sudo apt install libncurses5-dev libncursesw5-dev``` * Compile Using ```gcc typing_test.c utilities.c -lncurses``` * OR: Run ```make``` using Makefile @@ -74,3 +75,4 @@ UI: * Typing prompt *implemented* * Stats menu *implemented* * Settings menu *implemented* +* Themes \ No newline at end of file diff --git a/typing_test.c b/typing_test.c index 32f59fb..3797bca 100644 --- a/typing_test.c +++ b/typing_test.c @@ -285,6 +285,8 @@ void typing_ui(WINDOW *win, int level, int mode, Word_array *word_array, Stat_st /* Print end screen */ + line = 4; + print_centered_text(stdscr, 0, str); /* Print test type */ curs_set(0); print_centered_text(win, 2, "Test Complete!");