2014-06-08 10:13:29 +04:00
|
|
|
/* This file is part of ToaruOS and is released under the terms
|
|
|
|
* of the NCSA / University of Illinois License - see LICENSE.md
|
|
|
|
* Copyright (C) 2013 Kevin Lange
|
|
|
|
*/
|
2012-07-07 08:08:28 +04:00
|
|
|
/*
|
|
|
|
* clear
|
|
|
|
*
|
|
|
|
* Clears the terminal.
|
|
|
|
* This is a very dumb version and probably only works
|
|
|
|
* within the toaruOS terminal, but it might also work
|
|
|
|
* with an xterm or similar.
|
|
|
|
*/
|
2012-01-25 10:19:52 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(int argc, char ** argv) {
|
|
|
|
printf("\033[H\033[2J");
|
|
|
|
fflush(stdout);
|
|
|
|
return 0;
|
|
|
|
}
|