ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: Macros  (Read 826 times)

larryf

  • Jr. Member
  • **
  • Posts: 5
  • Place Personal Text Here
Macros
« 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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Macros
« Reply #1 on: April 07, 2005, 09:53:26 am »

I'm just guessing but instead of \13 try \0D
Logged

larryf

  • Jr. Member
  • **
  • Posts: 5
  • Place Personal Text Here
Re:Macros
« Reply #2 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....
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Macros
« Reply #3 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.
Logged

larryf

  • Jr. Member
  • **
  • Posts: 5
  • Place Personal Text Here
Macros
« Reply #4 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
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Macros
« Reply #5 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??

Logged
 

Page created in 0.015 seconds with 21 queries.