TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

How to match telnet IAC,GA?

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
sj



Joined: 22 Jan 2012
Posts: 16
Location: Manchester, England

PostPosted: Wed Jul 18, 2012 3:46 am    Post subject: How to match telnet IAC,GA? Reply with quote

I want to perform many actions on receiving the prompt, for example process input between two prompts and log/report.

Right now I match my prompt string, but this can be in many different formats and I'd like it to be as efficient as possible, so I just want to match telnet's go ahead at the end of the prompt.

I thought I'd be able to match using:
#act {\xff\xf9} {...}
Back to top
View user's profile Send private message Visit poster's website
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Wed Jul 18, 2012 10:21 pm    Post subject: Reply with quote

The telnet layer is stripped so that won't work.

Try:

Code:

#event {[RECEIVED PROMPT} {stuff}

%0 will hold the raw data, and %1 the prompt stripped off of color codes.
Back to top
View user's profile Send private message Send e-mail
sj



Joined: 22 Jan 2012
Posts: 16
Location: Manchester, England

PostPosted: Tue Jul 24, 2012 6:01 am    Post subject: Reply with quote

Hi,

You had me happy there for a moment! I have the latest TinTin++, but that event doesn't exist. I also checked the latest source and it isn't in event_table.

I can't get the "IAC <VAR> <VAR>" event to work using either of:

#event {IAC GA} {#showme {PROMPT}}
#event {IAC GA 0} {#showme {PROMPT}}
Back to top
View user's profile Send private message Visit poster's website
sj



Joined: 22 Jan 2012
Posts: 16
Location: Manchester, England

PostPosted: Tue Jul 24, 2012 8:37 am    Post subject: Reply with quote

I just noticed it was added in 2.00.9, thanks Smile.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group