diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-07 14:57:06 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-06-07 14:57:06 +0200 |
commit | caf14e45390a81f6fa9e1202f32655693fd027d7 (patch) | |
tree | d2b293fd8945dfef2d1ba2337173fe659d2c5817 /main.c | |
parent | 4c3ff7608d951070792d7f128515ec8e4c20a97f (diff) | |
download | ttfe-caf14e45390a81f6fa9e1202f32655693fd027d7.tar.xz |
Make cursor invisible
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |