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

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Gagging not working as expected

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Gagging not working as expected

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by John   Australia  (13 posts)  [Biography] bio
Date Tue 26 Apr 2005 04:42 AM (UTC)  quote  ]
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?
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #1 on Tue 26 Apr 2005 04:54 AM (UTC)  quote  ]

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.
[Go to top] top

Posted by David Berthiaume   (202 posts)  [Biography] bio
Date Reply #2 on Tue 26 Apr 2005 04:55 AM (UTC)  quote  ]
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.
[Go to top] 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.


2,679 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]