ICE
TCP/IP Products => TCP-PRO => Topic started 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
-
I'm just guessing but instead of \13 try \0D
-
\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....
-
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.
-
Don't know that it matters but I'll tell you how my Telnet is set up....
Display ICE852
Terminal settings WYSE60/25
-
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??