Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/console-tools/clear.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/console-tools/clear.c
r1765 r2725 5 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 6 6 * 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * 7 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 9 8 */ 10 11 /* no options, no getopt */12 13 9 #include "libbb.h" 14 10 15 int clear_main(int argc, char **argv) ;16 int clear_main(int argc , char **argv)11 int clear_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 12 int clear_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) 17 13 { 18 return printf("\033[H\033[J") != 6; 14 /* home; clear to the end of screen */ 15 return full_write1_str("\033[H""\033[J") != 6; 19 16 }
Note:
See TracChangeset
for help on using the changeset viewer.