Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Clear Screen

Clear Screen

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Robert Powell   Australia  (367 posts)  Bio
Date Tue 22 Mar 2005 10:45 AM (UTC)
Message
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.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Raz   (32 posts)  Bio
Date Reply #1 on Tue 22 Mar 2005 10:15 PM (UTC)
Message
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.

-Raz
C++ Wiki: http://danday.homelinux.org/dan/cppwiki/index.php
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #2 on Wed 23 Mar 2005 05:52 AM (UTC)
Message
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.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #3 on Thu 07 Apr 2005 04:39 AM (UTC)
Message
I think that 0x0C (form feed) will clear the screen, on clients that support it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Robert Powell   Australia  (367 posts)  Bio
Date Reply #4 on Thu 07 Apr 2005 05:58 AM (UTC)
Message
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.

Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #5 on Sun 10 Apr 2005 06:03 AM (UTC)
Message
MUSHclient doesn't support it either, there have been lots of posts discussing why.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,778 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.