Print game over message after quit from alternative screen

master
Elias Fleckenstein 2021-06-07 15:41:30 +02:00
parent c23e13e3e1
commit 739ab666ff
1 changed files with 2 additions and 2 deletions

4
main.c
View File

@ -47,10 +47,10 @@ void game_start() {
tcsetattr(STDIN_FILENO, TCSANOW, &newtio);
board *b = new_board();
game_loop(b);
print_score(b);
free_board(b);
printf("\e[?1049l\e[?25h");
tcsetattr(STDIN_FILENO, TCSANOW, &oldtio);
print_score(b);
free_board(b);
}
enum direction get_input()