From: Elias Fleckenstein Date: Mon, 7 Jun 2021 12:57:06 +0000 (+0200) Subject: Make cursor invisible X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=caf14e45390a81f6fa9e1202f32655693fd027d7;p=ttfe.git Make cursor invisible --- diff --git a/main.c b/main.c index 58c4a0d..15490a7 100644 --- a/main.c +++ b/main.c @@ -39,7 +39,7 @@ void init_board(board *b) { } void game_start() { - printf("\e[?1049h"); + printf("\e[?1049h\e[?25l]"); struct termios oldtio, newtio; tcgetattr(STDIN_FILENO, &oldtio); newtio = oldtio; @@ -49,7 +49,7 @@ void game_start() { game_loop(b); print_score(b); free_board(b); - printf("\e[?1049l"); + printf("\e[?1049l\e[?25h"); tcsetattr(STDIN_FILENO, TCSANOW, &oldtio); }