From 2cf498f7bf1311ebca156315a0c9ac25b0addef5 Mon Sep 17 00:00:00 2001 From: Cody Date: Tue, 27 Jun 2023 04:03:26 -0500 Subject: Working conways game of life --- std/stdio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'std/stdio.c') diff --git a/std/stdio.c b/std/stdio.c index a257f67..d3ff5a0 100644 --- a/std/stdio.c +++ b/std/stdio.c @@ -14,3 +14,7 @@ void print(char *str) { void termpos(int x, int y) { printf("\x1b[%d;%dH", x, y); } + +void termclear() { + printf("\x1b[2J\x1b[H"); +} -- cgit v1.2.3