added unittests, fixed getting terminal position and tested code

This commit is contained in:
= 2018-09-22 22:42:11 +02:00
parent a2bb9ecff5
commit 61778a23a6

View File

@ -63,7 +63,7 @@ fn print_welcome_screen()
let input = crossterm.input(); let input = crossterm.input();
// set size of terminal so the map we are going to draw is fitting the screen. // set size of terminal so the map we are going to draw is fitting the screen.
terminal.set_size(60,110); terminal.set_size(110,60);
// clear the screen and print the welcome message. // clear the screen and print the welcome message.
terminal.clear(ClearType::All); terminal.clear(ClearType::All);