//****************************************************
// Sprint  Logon Script Version 1.8    11.04.95
//****************************************************
01,A,"@","Connecting",04,04                                             // send '@' to wake up Sprint
02,W,15,3,1,"TERMINAL=",05,"PORTS BUSY",99,"NO CARRIER",99              // wait for the  TermType, else another @ 
03,A,"@","Connecting",04,04                                             // another @ last one not seen?  
//04,W,30,99,1,"TERMINAL=",05,"PORTS BUSY",99,"NO CARRIER",99             // wait again
04,W,10,99,1,"TERMINAL=",05,"PORTS BUSY",99,"NO CARRIER",99             // wait again
05,A,"D1","Connecting",06,06                                            // send D1 TERMINAL TYPE                      
//
06,W,30,07,1,"@",08                         // wait for the '@' prompt
07,W,30,99,1,"$HOSTNAME",08                 // WAIT FOR @ PROMPT
08,A,"%GOHOST","Connecting",27,27           // ouput our host required
//
09,W,30,99,1,"$GETUSERNAME",10,"HOST UNRESPONSIVE",99,"HOST UNAVAILABLE,99  // wait for User name prompt
10,A,"?USERNAME","Sending Username",11,11   // send User Name
//
11,W,30,99,1,"$GETPASSWORD",12              // wait for Password prompt
12,A,"?PASSWORD","Validating...",13,13      // send our password
//
13,W,15,15,1,"![c",14,"$PassError",20       // check for Authorization failure
14,A,"![?1;2C","Communicating",15,15        // send our terminal type
15,W,15,16,1,"!7",16                        // wait for ESC 7
16,A,"![24;1R","Communicating",17,17        // send ...
//
17,W,20,99,1,"READY",18                     // wait for the READY prompt, else error exit
18,A,"#VERSION","Initialising",19,19            // send our Version No. V.09 etc
19,A,"?ServerName","Initialising",0,0       // output our server name, usually (null)<cr>
//                                          // exit script
// Here we have a password failure
// present the dialog box and retry the password
20,A,"%PASSWORD","Input Password",21,21     // get the new Username & Password from the user
21,A,"#ENTER","Input Password",22,22
22,W,10,99,1,"$GETUSERNAME",23	            // wait for the Username prompt
23,A,"?USERNAME","Sending Username",24,24   // send User Name
24,W,30,99,1,"$GETPASSWORD",25              // wait for Password prompt
25,A,"?PASSWORD","Validating...",26,26      // send our new password
26,W,10,99,1,"![c",14,"READY",18,"$PASSERROR",99// check for Authorization failure, Exit 99 if failure
//
27,W,30,99,1,"CONNECTED",09,"$GETUSERNAME",10,"UNKNOWN ADDRESS",99,"ENTER YOUR COMMAND",99
END

