| View previous topic :: View next topic |
| Author |
Message |
sj
Joined: 22 Jan 2012 Posts: 16 Location: Manchester, England
|
Posted: Wed Jul 18, 2012 3:46 am Post subject: How to match telnet IAC,GA? |
|
|
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 |
|
 |
Scandum Site Admin
Joined: 03 Dec 2004 Posts: 3274
|
Posted: Wed Jul 18, 2012 10:21 pm Post subject: |
|
|
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 |
|
 |
sj
Joined: 22 Jan 2012 Posts: 16 Location: Manchester, England
|
Posted: Tue Jul 24, 2012 6:01 am Post subject: |
|
|
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 |
|
 |
sj
Joined: 22 Jan 2012 Posts: 16 Location: Manchester, England
|
Posted: Tue Jul 24, 2012 8:37 am Post subject: |
|
|
I just noticed it was added in 2.00.9, thanks . |
|
| Back to top |
|
 |
|