View Single Post
  #2   Spotlight this post!  
Unread 05-02-2004, 16:01
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
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.

Last edited by Jay Lundy : 05-02-2004 at 16:05.