Mercurial > hg > toybox
annotate toys/other/clear.c @ 656:6df4ccc0acbe
Regularize command headers, update links to standards documents.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 25 Aug 2012 18:08:51 -0500 |
parents | 2986aa63a021 |
children | 786841fdb1e0 |
rev | line source |
---|---|
523 | 1 /* vi: set sw=4 ts=4: |
2 * | |
3 * clear.c - clear the screen | |
4 * | |
5 * Copyright 2012 Rob Landley <rob@landley.net> | |
6 | |
7 USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN)) | |
8 | |
9 config CLEAR | |
10 bool "clear" | |
11 default y | |
12 help | |
13 Clear the screen. | |
14 */ | |
15 | |
16 #include "toys.h" | |
17 | |
18 void clear_main(void) | |
19 { | |
20 write(1, "\e[2J\e[H", 7); | |
21 } |