aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-07 14:39:56 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-07 14:39:56 +0200
commit4c8ab9a09eb6c13a7bd2a00dd7e638f0bea27427 (patch)
tree52f480089d72d9486a0e8c4b8c0ff5227f13d965 /main.c
parentda99f0faf407662c00fb9a51ea362f01e420ab46 (diff)
downloadttfe-4c8ab9a09eb6c13a7bd2a00dd7e638f0bea27427.tar.xz
Use escape sequence to clear the entire screen
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 9a7793f..a572dde 100644
--- a/main.c
+++ b/main.c
@@ -408,7 +408,7 @@ void print_board_line(board *b, int l) {
}
void print_board(board *b) {
- printf("\e[1J\e[0;0H");
+ printf("\e[2J\e[0;0H");
printf("Score: %u\n", b->points);
print_sep();
for(int i = 0; i < 4; ++i) {