View Full Version : clear printf box?
telefragger2000
05-02-2004, 15:07
is there any way to clear the printf box in ifi loader(with code)?
Jay Lundy
05-02-2004, 16:01
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
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
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
Our team uses Tera Term (http://hp.vector.co.jp/authors/VA002416/teraterm.html) 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
thanks :)
going to try both of those out tonight and see how it goes
Astronouth7303
05-02-2004, 17:40
My solution: Write my own!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.