blob: 8e34d6d9a10ea65e62669611da0308841ce8c04c [file] [log] [blame]
Erik Andersene49d5ec2000-02-08 19:58:47 +00001/* vi: set sw=4 ts=4: */
Eric Andersen2b69c401999-10-05 22:58:32 +00002/*
3 * Mini clear implementation for busybox
4 *
Eric Andersenc7bda1c2004-03-15 08:29:22 +00005 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
Eric Andersen2b69c401999-10-05 22:58:32 +00006 *
"Robert P. J. Day"801ab142006-07-12 07:56:04 +00007 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
Eric Andersen2b69c401999-10-05 22:58:32 +00008 *
9 */
10
Eric Andersen7f6295f2003-10-22 10:34:15 +000011/* no options, no getopt */
12
Eric Andersencc8ed391999-10-05 16:24:54 +000013#include <stdio.h>
Eric Andersened3ef502001-01-27 08:24:39 +000014#include <stdlib.h>
Eric Andersencbe31da2001-02-20 06:14:08 +000015#include "busybox.h"
Eric Andersencc8ed391999-10-05 16:24:54 +000016
Eric Andersencc8ed391999-10-05 16:24:54 +000017
Denis Vlasenko06af2162007-02-03 17:28:39 +000018int clear_main(int argc, char **argv);
Rob Landleydfba7412006-03-06 20:47:33 +000019int clear_main(int argc, char **argv)
Eric Andersencc8ed391999-10-05 16:24:54 +000020{
"Vladimir N. Oleynik"87210b52005-10-12 08:43:00 +000021 return printf("\033[H\033[J") != 6;
Eric Andersencc8ed391999-10-05 16:24:54 +000022}