ubase/clear.c

24 lines
291 B
C
Raw Normal View History

2013-08-16 10:08:26 +00:00
/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include "util.h"
static void
usage(void)
{
eprintf("usage: %s\n", argv0);
}
2013-08-16 10:08:26 +00:00
int
main(int argc, char *argv[])
2013-08-16 10:08:26 +00:00
{
argv0 = argv[0], argc--, argv++;
if (argc)
usage();
printf("\x1b[2J\x1b[H");
2014-10-02 22:45:25 +00:00
return 0;
2013-08-16 10:08:26 +00:00
}