Kenneth Lantrip wrote:
Quote:
My question is: Is there a generally accepted way to clear the screen
and perhaps move the cursor to a new location (other than newline) for
the next printf in standard c?
Not within standard C, no. You might try printing a formfeed character,
'\f', or several newlines, but these are all half-baked solutions.
Again, there's no way to move the cursor to a particular line, without
making a lot of unwarrented assumptions.
Quote:
What about ANSI control codes? Are those standard across most
platforms? Or is that just for PC/MAC based computers? Anyone know
where I can see a list of ANSI codes?
They're fairly widespread but are by no means guarenteed to be present.
Quote:
Please enlighten me, thanks for your time.
If you're program _really_ needs screen control, then using the curses
package is a good option. It's widely implemented across UNIXes,
Windows and Mac. It is a better option than using ANSI control
sequences, which are lower level. Of course, for a specific platform,
often better, more feature-rich libraries are available, but you'll
have to ask such questions in more specific newsgroups.