Fix end screen rolling off terminal

This commit is contained in:
Aidan Haas 2023-10-25 18:25:56 -04:00 committed by GitHub
parent 790a373637
commit 023960695f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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!");