diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/console.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/console.c b/src/console.c index e675ba2..400a7f5 100644 --- a/src/console.c +++ b/src/console.c @@ -93,7 +93,10 @@ vector_t user_input_pos() { return pos; } void clear_screen() { - system("@cls||clear"); + /* clear the screen */ + printf("\033[2J"); + /* move the cursor to the top left */ + printf("\033[0;0H"); } void warn_user(char* message) { clear_screen(); |
