20 lines
457 B
C
20 lines
457 B
C
/* 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 K. Lange
|
|
*/
|
|
/*
|
|
* 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.
|
|
*/
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char ** argv) {
|
|
printf("\033[H\033[2J");
|
|
fflush(stdout);
|
|
return 0;
|
|
}
|