1 /* vi: set sw=4 ts=4: */
3 * Mini reset implementation for busybox
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * Written by Erik Andersen and Kent Robotti <robotti@metconnect.com>
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
11 /* no options, no getopt */
18 int reset_main(int argc, char **argv)
21 /* See 'man 4 console_codes' for details:
23 * "ESC ( K" -- Select user mapping
24 * "ESC [ J" -- Erase display
25 * "ESC [ 0 m" -- Reset all display attributes
26 * "ESC [ ? 25 h" -- Make cursor visible.
28 printf("\033c\033(K\033[J\033[0m\033[?25h");