ICE

TCP/IP Products => TCP-PRO => Topic started by: larryf on April 07, 2005, 09:39:33 am

Title: Macros
Post by: larryf on April 07, 2005, 09:39:33 am
What is the coding sequence for entering a macro, expecting a carriage return before the macro continues playing?

For example, I want to prompt for input, expect the carriage return/enter key before proceeding on to the next prompt.

Send Enter the name
Expect \13

doesn't work.  The macro doesn't continue playing the next prompt, nor does it stop (can't play any other macros either
Title: Macros
Post by: Bob on April 07, 2005, 09:53:26 am
I'm just guessing but instead of \13 try \0D
Title: Re:Macros
Post by: larryf on April 07, 2005, 11:09:05 am
\0D (Backslash zero D) isn't operable.  So I used 0D, which is interpreted as an Escape.  In other words, us using
EXPECT   0D
Telnet responds with the next macro entry prompting for input only after pressing ESC, not Enter
I don't see where 0D is ASCII for Escape, so I'm not sure what code/decimal I need for Enter....
Title: Macros
Post by: Bob on April 07, 2005, 11:28:41 am
That's weird because \1B is escape according to my doc. I'm probably going to have to mess around with it some to try to figure out what's up.
Title: Macros
Post by: larryf on April 07, 2005, 02:49:19 pm
Don't know that it matters but I'll tell you how my Telnet is set up....

Display ICE852
Terminal settings WYSE60/25
Title: Macros
Post by: Bob on April 08, 2005, 10:53:40 am
Interesting that you are using 852 but that is besides the point.
I just tried a test with
EXPECT \13
SEND \13finger\13
EXPECT \13
SEND \13finger\13

and the behavior was as expected, it waited for me to hit enter then did a finger, saw the enter from the first finger then did another finger.

I'm not sure why it's not working for you. Perhaps your unix machine is sending a LF instead of a CR? Try \10 instead??