diff options
| author | Cody <cody@codyq.dev> | 2023-06-27 04:03:26 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-06-27 04:03:26 -0500 |
| commit | 2cf498f7bf1311ebca156315a0c9ac25b0addef5 (patch) | |
| tree | ad216a67c0339f14908c98e744c9b617ff8bc0e2 /std/stdio.c | |
| parent | 5d958f8af1646f9cb4763bb2f020bb2e6de8a3c0 (diff) | |
| download | sloth-2cf498f7bf1311ebca156315a0c9ac25b0addef5.tar.gz | |
Working conways game of life
Diffstat (limited to 'std/stdio.c')
| -rw-r--r-- | std/stdio.c | 4 |
1 files changed, 4 insertions, 0 deletions
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"); +} |
