From afe56e4cc7683859f8c072b00253a7c514d53a47 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 16 Aug 2013 11:08:26 +0100 Subject: [PATCH] Add clear(1) --- Makefile | 1 + clear.c | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 clear.c diff --git a/Makefile b/Makefile index 7a12d17..104f674 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ LIB = \ SRC = \ chvt.c \ + clear.c \ df.c \ dmesg.c \ free.c \ diff --git a/clear.c b/clear.c new file mode 100644 index 0000000..3c3a437 --- /dev/null +++ b/clear.c @@ -0,0 +1,9 @@ +/* See LICENSE file for copyright and license details. */ +#include + +int +main(void) +{ + printf("\e[2J\e[H"); + return 0; +}