Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Fri Oct 24, 2003 4:57 pm   

Gagging a prompt
 
Hi All and thanks in advance! Smile

Here's my problem.

I need to gag my prompt without gagging everything on that line.

Here's an example;

Hp:10027/10027 Mana:4214/4916 Move:3140/3140 <What I want not to be gagged>

It ends up leading to confusion when I gag the prompt as sometimes the MUD sends info on that line and it also gags any commands I send (They still work, but I can't see the input).

Hope that's clear. Very Happy

Once again, Thanks in advance,

Tygerhart
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 24, 2003 5:51 pm   
 
Since #GAG is a line-based command, there isn't any way to do it. If your prompt is on the same line as other info, either the entire line will be gagged including the other info or it won't be and you'll see the prompt.

If your MUD allows you to modify your prompt and includes a carriage-return token, your best bet is to put one at the end of your prompt. This will prevent the prompt from being on the same line as other info.

You might get close to what you want using #SUB to replace the entire prompt with a space or null-string.

The easiest is just to do away with the #GAG, I'm sure there are thousands of us who routinely have our prompt shown on our screen and have no difficulty at all. [^]
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Sat Oct 25, 2003 8:18 pm   
 
quote:
Originally posted by LightBulb

Since #GAG is a line-based command, there isn't any way to do it. If your prompt is on the same line as other info, either the entire line will be gagged including the other info or it won't be and you'll see the prompt.



<snip>

Ok, thanks for that info. Was hoping there was a way around this prob, as the prompt is kinda spammy, and I still need the info in it for variables.

Thanks,

Tygerhart
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Sat Oct 25, 2003 10:34 pm   
 
Try using #SUB like LightBulb suggested.
Reply with quote
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: Sun Oct 26, 2003 12:09 am   
 
quote:
Originally posted by Kjata

Try using #SUB like LightBulb suggested.



Thanks!

Once again Lightbulb and Kjata open my eyes! Very Happy


Tygerhart
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net