View Full Version : Clear Screen
cprogrammer
14-01-2007, 18:28
I need to know how to clear the termianl window screen from within MPLAB. ex. printf("blahblahblah\r\n") instead of \r\n i need something to clear the screen, if there is nothing like this please tell me a method of doing this.
Mark McLeod
14-01-2007, 19:02
There is no direct command or special ASCII the IFI Terminal Window will recognize (or at least not the last time I tried the entire ASCII string set), but you can simply send a whole bunch of carriage returns, e.g.,
printf("/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r/r");
bear24rw
14-01-2007, 19:15
You could write your own terminal or use another free one that does have a character that will clear the screen
Kevin Watson
14-01-2007, 19:16
I need to know how to clear the termianl window screen from within MPLAB. ex. printf("blahblahblah\r\n") instead of \r\n i need something to clear the screen, if there is nothing like this please tell me a method of doing this.Get a good terminal emulator, like TeraTerm (http://www.ayera.com/teraterm/), and then Google "terminal escape sequence" (http://www.google.com/search?q=terminal+escape+sequence) for the character strings that can be sent to the terminal emulator to create pretty cool user interfaces.
-Kevin
brainonska
27-01-2007, 19:36
system("cls");
or...
system("clear");
If you choose Adam 3A terminal emulation and then find a terminal program that supports it, you can have a complete way to control where text is put on the screen.
Jimmy Cao
28-01-2007, 22:20
system("cls");
or...
system("clear");
I dont think these work on the RC, because these are actually external function calls to the windows terminal, but I may be wrong.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.