|
nostra Wanderer
Joined: 23 May 2001 Posts: 68 Location: Sweden
|
Posted: Mon May 12, 2003 11:31 pm
controlling output, gag not optimal?! |
Is it possible to not only gag certain text, like:
#GAG you drink from a decanter
But actually stop zmud from "jumping" one line (each line that is gagged is produced like a blank line)?
Indeed, these empty lines can be really annoying if you use gag a lot :>
Kindly,
Mikael |
|
|
|
Lain Novice
Joined: 26 Oct 2001 Posts: 38
|
Posted: Tue May 13, 2003 3:56 am |
The #GAG shouldn't remove that line of text completly without leaving a blank line behind. Kaishaku had a problem like this recently, they found that the blank line being left by the gag was caused by the GA/EOR emulation. Maybe you could try unchecking that option and see if that helps any?
Hope this helps,
Lain |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue May 13, 2003 4:00 am |
quote:
Is it possible to not only gag certain text, like:
#GAG you drink from a decanter
But actually stop zmud from "jumping" one line (each line that is gagged is produced like a blank line)?
Indeed, these empty lines can be really annoying if you use gag a lot :>
Kindly,
Mikael
#GAG actually eats the current line's return character, but it doesn't touch the following one that causes the double-spacing. It's this leftover blank line you see "jump", not the line you just gagged.
Therefore, you have two (and a half) options:
1)create a separate blank-line trigger to eat up the blank lines either on a continuous basis (no blanks at all) or during certain periods of time.
Style 1
#trigger {some text} {#T+ tBlank;#gag}
#trigger "tBlank" {^$} {#gag;#t- tBlank}
Style 2
#trigger {^$} {#gag}
2)as of public version 6.40 and later (or, I think, version 6.26 beta if you're still using it--assuming it hasn't expired already), you can use a multi-state trigger who's last condition looks something like this:
#trigger {blah blah} {more blah}
#cond {$} {#gag}
This method has the advantage that you already know there's going to be a blank line following the trigger pattern so you don't need to check anything or otherwise bother with other triggers (in case you only want to remove certain blank lines).
2.5)#GAG has an alternative syntax that allows you to specify which lines to gag in relation to the current line. #GAG -2 will gag the last two lines received (current and the one before it, I believe), while #GAG 2 will gag the current line and the next line received. In both instances, you do not have any control over whether you gag the wrong lines or not.
EDIT: If you do end up gagging the wrong line(s), you can ungag them using the #UNGAG command.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|