Mail Archives: djgpp/2000/04/18/13:12:29
==
oneliner:Hali-gali, paratrooper...(c)
Greetings, Hackrus <hackrus AT hotmail DOT com>! You wrote:
> I have found a way of doing this. If you put:
> int i;
> for (i=0;i<50;i++)
> cout << "\n" << endl;
> on the top of the text where the screen should be deleted, en put this:
> int i;
> for (i=0;i<??;i++)
> cout << "\n" << endl;
> on the bottom of the text, then you should fill in 24-the rows of text=??
There some modes that can count as _text_ modes. some modes are 50 strings.
Then we'll clear any screen in 50 strings. Use 25 (not 24) for plain txt
mode, of course. :)
> So if you have 4 rows of text on the screen, do this:
> int i;
> for (i=0;i<20;i++)
> cout << "\n" << endl;
> this would let you scroll down, so the text is at the top of the screen.
> I now it's not a good way of clearing the screen, but it's possible in
this
> way!!
> (Sorry for my bad english!!).
Well, old batches were using it :).
Hmmm...'for' is a heavy and harsh contruction. Catch that:
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" << endl;
For 25 row mode ;).
> Hope you guys now a better way for doing this!!
There are the ways:
-cout
-peeking-poking to the videomemory
-clrscr() (it works!!!!)
-clear(screen) in Allegro
and more :).
ps. I call it "be creative" ;).
- Raw text -