From 8b74e263f05587c23785e6813bebe047c96149b0 Mon Sep 17 00:00:00 2001 From: Ole Morud Date: Wed, 8 Jun 2022 17:55:37 +0200 Subject: [PATCH] working clear function --- graphics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/graphics.c b/graphics.c index 1360543..75b1656 100644 --- a/graphics.c +++ b/graphics.c @@ -102,6 +102,7 @@ void line(Canvas* c, uint start_x, uint start_y, uint end_x, uint end_y){ //TODO: find escape sequence for clearing screen void clear(){ - printf("function clear() not implemented yet"); + printf("\033[2;2H"); + //printf("function clear() not implemented yet"); }