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
EZE
Beginner


Joined: 04 Sep 2002
Posts: 21
Location: USA

PostPosted: Mon Jan 06, 2003 11:51 pm   

reducing typos
 
I have been using Zmud and all of its facets for a couple years now. I get to typing when I am mudding, and going so fast sometimes I hit the character when I am hitting enter. I would like to know how to take out sending the character and send the rest of the line without the typo.

ie
sa jack Hello
to actually send
sa jack Hello

Thanx for the help guys, always a good source of info.

E
Reply with quote
EZE
Beginner


Joined: 04 Sep 2002
Posts: 21
Location: USA

PostPosted: Tue Jan 07, 2003 12:31 am   
 
The character does some strange things in these forums. I just want to know how it could be stripped from the end of a line before it is sent to the mud.

E
Reply with quote
Emit
Magician


Joined: 24 Feb 2001
Posts: 342
Location: USA

PostPosted: Tue Jan 07, 2003 1:18 am   
 
good question, this is a tricky one.
so far as i know there are only two ways to do this.
1) create an alias through which all commands are parsed
2) use #oninput to intercept text sent through the mud

1 is awkward because you'll need to type the alias name before every command

2 is a good option, but you'll need to put some thought as to what you want the pattern to be

#oninput {} {#sub ""}

will strip this character from ever being sent

#oninput {$} {#sub ""}

will stop it only if its the last character on a line, which is what i think your going for
Reply with quote
EZE
Beginner


Joined: 04 Sep 2002
Posts: 21
Location: USA

PostPosted: Tue Jan 07, 2003 1:52 am   
 
Works like a charm, thanks.

E
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