Mercurial > hg > toybox
view toys/other/clear.c @ 1571:e85e5f3b87c2 draft
As long as Android's going to require fortify, fixup the warnings it generates.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 22 Nov 2014 00:36:45 -0600 |
parents | 786841fdb1e0 |
children |
line wrap: on
line source
/* 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); }