blob: 4061ea8d25f7ed63e98c0ead68b0f0a2c5b43319 [file] [log] [blame]
/* clear.c - clear the screen
*
* Copyright 2012 Rob Landley <rob@landley.net>
USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN))
config CLEAR
bool "clear"
default y
help
Clear the screen.
*/
#include "toys.h"
void clear_main(void)
{
xwrite(1, "\e[2J\e[H", 7);
}