Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Clear Screen (http://www.chiefdelphi.com/forums/showthread.php?t=51878)

cprogrammer 14-01-2007 18:28

Clear Screen
 
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

Re: Clear Screen
 
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

Re: Clear Screen
 
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

Re: Clear Screen
 
Quote:

Originally Posted by cprogrammer (Post 556764)
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, and then Google "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

Re: Clear Screen
 
system("cls");
or...
system("clear");

dwc309 28-01-2007 21:48

Re: Clear Screen
 
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

Re: Clear Screen
 
Quote:

Originally Posted by brainonska (Post 566490)
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.


All times are GMT -5. The time now is 01:30.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi