Advertisement

How do you clean the screen?

Started by May 05, 2002 08:45 PM
10 comments, last by Ragadast 22 years, 4 months ago
I don''t think so, because you can call it without a header called.


KILAHMANJARO!

Wachar's Eternity <-<-<-<-<- Me own site!
You should avoid system("cls") because it involves loading COMMAND.COM, calling the CLS command, and returning. This is entirely too much work/memory for something as simple as a clear screen.

If you are using Windows and don''t want to call the Windows console functions, then you can always output 25 blank lines. Of course, your cursor will start at the bottom, but it will get the job done. Moving the cursor back to the top will probably require the Windows console functions anyway.

If you are looking for a cross-platform solution, there simply is not one that I know of (although I''m sure SOMEone has done it before).

But if you write a program to CLEAN the screen, I''ll pay money for it. Those stupid monitor wipes simply don''t work. :-)

I can do it in 16-bit x86 Assembly code, and with time I could probably write a 32-bit inline function (unless Windows blocks out INT 10h). Then again, I''m sure others have done this before. Do some searching on google.

--TheMuuj
--TheMuuj

This topic is closed to new replies.

Advertisement