GRASS Programmer's Manual
6.4.1(2011)
|
00001 00002 /********************************************************************** 00003 * 00004 * G_clear_screen() 00005 * 00006 * clears the terminal screen 00007 * 00008 **********************************************************************/ 00009 #include <stdlib.h> 00010 #include <grass/gis.h> 00011 00012 int G_clear_screen(void) 00013 { 00014 #ifdef __MINGW32__ 00015 system("cls"); 00016 #else 00017 system("clear"); 00018 #endif 00019 00020 return 0; 00021 }