blob: 0d94e35b827724d9218974edc58fa27bfb7500f2 [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
Denis Vlasenkob6adbf12007-05-26 19:00:18 +000013#include "libbb.h"
Eric Andersencc8ed391999-10-05 16:24:54 +000014
Denis Vlasenko9b49a5e2007-10-11 10:05:36 +000015int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
Denis Vlasenko68404f12008-03-17 09:00:54 +000016int clear_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
Eric Andersencc8ed391999-10-05 16:24:54 +000017{
"Vladimir N. Oleynik"87210b52005-10-12 08:43:00 +000018 return printf("\033[H\033[J") != 6;
Eric Andersencc8ed391999-10-05 16:24:54 +000019}