aboutsummaryrefslogtreecommitdiff
path: root/std/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'std/stdio.c')
-rw-r--r--std/stdio.c4
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");
+}