ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit afe56e4cc7683859f8c072b00253a7c514d53a47
parent c2db2d065bceb6eafd73ea0cc4ebb0345528c73e
Author: sin <sin@2f30.org>
Date:   Fri, 16 Aug 2013 11:08:26 +0100

Add clear(1)

Diffstat:
MMakefile | 1+
Aclear.c | 9+++++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git 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 @@ -0,0 +1,9 @@ +/* See LICENSE file for copyright and license details. */ +#include <stdio.h> + +int +main(void) +{ + printf("\e[2J\e[H"); + return 0; +}