From 873a3216ccc5c1f2bbc4f053c851c2a8d24e4553 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 21 Aug 2018 17:16:42 -0500 Subject: Use \033 instead of \e gcc extension. --- toys/other/clear.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') diff --git a/toys/other/clear.c b/toys/other/clear.c index 4061ea8d..842579f8 100644 --- a/toys/other/clear.c +++ b/toys/other/clear.c @@ -15,5 +15,5 @@ config CLEAR void clear_main(void) { - xwrite(1, "\e[2J\e[H", 7); + printf("\033[2J\033[H"); } -- cgit v1.2.3