blob: 9686d50043d3e69ef3a6015b893d3aed422a9ee5 [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
Rob Landleydfba7412006-03-06 20:47:33 +000018int clear_main(int argc, char **argv)
Eric Andersencc8ed391999-10-05 16:24:54 +000019{
"Vladimir N. Oleynik"87210b52005-10-12 08:43:00 +000020 return printf("\033[H\033[J") != 6;
Eric Andersencc8ed391999-10-05 16:24:54 +000021}