Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to account for screen that doesnt advance

Status
Not open for further replies.

pronei

Vendor
Mar 11, 2008
1,010
US
I've built a very comprehensive script that will build and program Nortel PBXs.

The problem I run into occassionally is on a Transmit "^M" the screen doesn't advance properly, after the ^M is sent, the cursor goes back to the beginning of the line.

How do I script a fix for that?

Simple Example:

Script says:
Waitfor "TN "
Transmit "005 0 00 01^M"

On screen:
TN 005 0 00 01 <- occassional when ^M issued the screen will not advance and the cursor will stick on the T in TN.
 
I've figured it out, a simple solution below.

proc screenstuck
When quiet 10 call pressenter
endproc

proc pressenter
Transmit "^M"
endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top