Clear Screen

Posted by Robert Powell on Tue 22 Mar 2005 10:45 AM — 6 posts, 24,245 views.

Australia #0
Is there an easy way to clear the screen, I have been making changes to the Oasis OLC smaug port and would like to clear the screen between menu changes just to make it a little more readable.

I have been searching the web to find help and all i can find is lots of ways to clear the shell, or command line if it is a console app.


Thanks in advance for your assistance.
#1
Doesn't seem to be. This is the best I could find on the subject:

http://www.iana.org/assignments/telnet-options

You could always try to flood the screen with newlines as well.
Australia #2
I did think about the cheepish hacks we used to do 100 years ago in Pascal, when i first learned to program. But i would have thougth in C there would be some Function like CLS that would clear the Telnet window, not just the consol.

I will look at that website now and see if i can come up with something better than a for loop and a bunch of line feeds.
Australia Forum Administrator #3
I think that 0x0C (form feed) will clear the screen, on clients that support it.
Australia #4
Thanks nick, i also found an ansi code \x01B[2J that does the same, but my client, Kmuddy does not suport it. Im about to email them and see of it can be added in. In the mean time i will try the one you mention.
Australia Forum Administrator #5
MUSHclient doesn't support it either, there have been lots of posts discussing why.