From d5ad52317a8abdfaa5237cf326ce718d6f75eedf Mon Sep 17 00:00:00 2001 From: nasrlol Date: Tue, 18 Feb 2025 21:13:36 +0100 Subject: implemented the clear function in the if else ladder, dont know if there is a nicer way to do this, ill have to think about it Signed-off-by: nasrlol --- main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7ed0cee..797329d 100644 --- a/main.c +++ b/main.c @@ -111,5 +111,8 @@ int main(void) { printf("%s", new_input.arg); free(new_input.arg); } + if (strcmp(new_input.com, "clear") == 0) { + clear(); + } } } -- cgit v1.2.3-70-g09d2