"Maxd out" <ni****************@bigpond.com> wrote:
I'm wondering if you can clear a monitor display cout that asks for
something after it's been read in by cin e.g;
cout <<"Enter number" <<endl;
If so how can it be done?
By clear the display, do you mean wipe the screen clean and start over
at the top line? Or are you talking about something inside of
iostreams, clearing buffers?
For clearing the display like I guessed, that can't be done with
Standard C++ alone. If it's a VT100 terminal, you could send
"\033[H\033[J", which tends to work... but if that doesn't work, or
you want to know more about terminal control, you'll have to look for
a spec, library, or group on ansi terminals, since they aren't part of
standard C++.
--
Dave O'Hearn