aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-07 14:57:06 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-07 14:57:06 +0200
commitcaf14e45390a81f6fa9e1202f32655693fd027d7 (patch)
treed2b293fd8945dfef2d1ba2337173fe659d2c5817
parent4c3ff7608d951070792d7f128515ec8e4c20a97f (diff)
downloadttfe-caf14e45390a81f6fa9e1202f32655693fd027d7.tar.xz
Make cursor invisible
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
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);
}