Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ MUSHclient
➜ General
➜ Using the "\x1b[2J\x1b[H" Screen Clear Control Sequence with MUSHClient
Using the "\x1b[2J\x1b[H" Screen Clear Control Sequence with MUSHClient
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
Posted by
| Radyth
(1 post) Bio
|
Date
| Reply #15 on Mon 10 Jan 2011 10:20 PM (UTC) |
Message
| Couldn't you just make mushclient interpret that sequence to scroll the window so all of the output that's received after it is displayed at the top of the screen? is there a way to do this with a plugin? | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #16 on Tue 11 Jan 2011 08:45 AM (UTC) |
Message
| Certainly you could do that in a plugin. Search for examples using the plugin callback OnPluginPacketReceived.
You would need to use that because control sequences are processed by the client (however not before OnPluginPacketReceived is called).
A simple method would be to search for the string you mention, and then display a dozen or so blank lines. A more complex method would find the number of pixels in the output font height (using GetInfo) and the number of pixels in the output window, and calculate the number of lines you needed.
However I'm not sure it is really a great idea. If the screen clears often (eg. when you change rooms) then the output buffer is going to fill up rather quickly with annoying numbers of blank lines.
Still, you can do it if you want to. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #17 on Tue 11 Jan 2011 08:48 AM (UTC) |
Message
| Whoops, didn't notice this was page 2 of an old thread. In that case, my earlier comments apply as well. :) |
- 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.
60,695 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top