[Home] [Downloads] [Search] [Help/forum]


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, 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 ➜ Gagging not working as expected

Gagging not working as expected

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


Posted by John   Australia  (13 posts)  Bio
Date Tue 26 Apr 2005 04:42 AM (UTC)
Message
Hey,

Sorry for asking such a basic question, but I can't work it out. I'm using Nick's "Health Bar" Plugin and I now want to gag the prompt from my output window.

I've set up the trigger to act on this string: "^\<(.*?)\/(.*?) hp(.*?)$" and have ticked the following boxes:
* Enabled
* Omit from log file
* Omit from output
* Regular expression

However it only gags it once something happens on the screen. Every other time it is there at the bottom of the screen.

It's a -great- way to get your prompt only appearing at the bottom, but that isn't what I want ;)

So what am I doing wrong?
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Tue 26 Apr 2005 04:54 AM (UTC)

Amended on Tue 26 Apr 2005 04:56 AM (UTC) by Flannel

Message
Nothing.
The problem is, well, a problem with all (most) servers.

The thing is, they send the prompt, and NO Newline. Mushclient waits for a newline to check triggers (since otherwise, how is it to know the line has ended?).

There are a couple of work arounds, the newest is with a plugin that checks lines BEFORE the newline (by monitoring the packets) and then inserts a newline after the prompt has been received. However, less work than that (if your server allows it) is adding a newline to the end of your prompt (some servers allow you to do this, to allow for multiline prompts, or whatever).

You can find details on the former here:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5020

For the latter (assuming your server allows you to edit the prompt, only some do) check your help file to see if you can add a newline to the end of your prompt. Then youll have 'most' of the prompt already proccessed and then a little bit of it hanging around, but it'll be a blank (a space perhaps) and you can gag that too (after something else arrives).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by David Berthiaume   (202 posts)  Bio
Date Reply #2 on Tue 26 Apr 2005 04:55 AM (UTC)
Message
Most muds have a carriage return option for prompts, for multi-line prompts. I suggest that you add a carriage return at the end of your prompt. That should sove the issue.
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.


14,915 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

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]