clear.c (291B)
1 /* See LICENSE file for copyright and license details. */ 2 #include <stdio.h> 3 4 #include "util.h" 5 6 static void 7 usage(void) 8 { 9 eprintf("usage: %s\n", argv0); 10 } 11 12 int 13 main(int argc, char *argv[]) 14 { 15 argv0 = argv[0], argc--, argv++; 16 17 if (argc) 18 usage(); 19 20 printf("\x1b[2J\x1b[H"); 21 22 return 0; 23 }