Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   clear printf box? (http://www.chiefdelphi.com/forums/showthread.php?t=24805)

telefragger2000 05-02-2004 15:07

clear printf box?
 
is there any way to clear the printf box in ifi loader(with code)?

Jay Lundy 05-02-2004 16:01

Re: clear printf box?
 
Um...

int i;
for (i = 0; i < 100; i++) printf("\n");

I don't think there's any other way. IFI Loader just reads bytes from the serial port and prints them out as ascii characters.

Careful though, the code I posted might delay the program too much and the master may choke due to lack of communication. It's not really a good idea to put loops in your code. You could put in multiple '\n's, but make sure you don't go over the max printf buffer length.

Greg Ross 05-02-2004 16:08

Re: clear printf box?
 
Quote:

Originally Posted by telefragger2000
is there any way to clear the printf box in ifi loader(with code)?

I assume you mean the IFI_Loader terminal window? I doubt it. I would expect such features to be documented (as Parallax did for their BASIC Stamp Editor) and I havent seen any such documentation.

You could use another terminal emulator though. Hyperterminal supports several terminal emulation modes. You would just need to figure out the escape sequences needed to accomplish the formatting you want. If this is a route you would like to pursue, let us know, and I'm sure you will get lots of help.

Mark McLeod 05-02-2004 16:35

Re: clear printf box?
 
I ran through the entire ASCII control set without any luck affecting the terminal window other than carriage return.

I agree last year's was much more capable of setting up nice debug output displays. Try HyperTerminal.

FotoPlasma 05-02-2004 16:52

Re: clear printf box?
 
Our team uses Tera Term as a terminal program. After getting the baud rate set, and choosing the right COM port, it automatically clears the screen for each cycle. If you have any problems with the program, feel free to ask, and I'll get in depth into the settings we use.

telefragger2000 05-02-2004 17:33

Re: clear printf box?
 
thanks :)

going to try both of those out tonight and see how it goes

Astronouth7303 05-02-2004 17:40

Re: clear printf box?
 
My solution: Write my own!


All times are GMT -5. The time now is 04:17.

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