home *** CD-ROM | disk | FTP | other *** search
- ***************************************************************************
- * H A R D W I R E . S C R --- Setup hard-wired connection *
- ***************************************************************************
- * *
- * Script: HardWire.Scr *
- * *
- * Purpose: Sets up hardwired connection to ACNS mainframe systems. *
- * *
- ***************************************************************************
- *
- * Which ACNS system to connect to
- Declare SysType Integer
- * Which PACX class to connect to
- Declare Class String
- *
- Declare AnyS String
- * If keyboard is enhanced keyboard
- Declare EnhType Integer
- *
- * Procedure to wake up Pack and send class.
- *
- Procedure WakePacx
- *
- * Issue break to get Pacx's attention and respond
- * with appropriate class.
- *
- Writeln " "
- Writeln "Sending break to gain attention of Pacx ... "
- Writeln " "
- *
- Break
- *
- Repeat
- SText "|"
- WaitString "class" 2
- Until ( WaitFound )
- *
- Set Class = CONCAT( '~' , CONCAT( Class , "|" ))
- SText Class
- *
- EndProc WakePacx
- *
- *
- *
- Procedure KermNote
- *
- Declare MyClass String
- Declare PgUp String
- Declare PgDn String
- *
- Set PgUp = 'PgUp'
- Set PgDn = 'PgDn'
- *
- DoCase Class OF
- Case "VE"
- Set MyClass = 'NOS/VE'
- EndCase
- Case "Cyber"
- Set MyClass = 'NOS'
- EndCase
- Case "Vax"
- Set MyClass = 'VAX/VMS'
- IF ( EnhType = 1 ) THEN
- Set PgUp = '<CTRL>PgUp'
- Set PgDn = '<CTRL>PgDn'
- ENDIF
- EndCase
- Case "Ibm"
- Set MyClass = 'CMS'
- EndCase
- EndDoCase
- Writeln " "
- Set AnyS = CONCAT(CONCAT('To start Kermit on ',MyClass), ' type KERMIT.')
- Writeln AnyS
- Writeln " "
- Set AnyS = CONCAT(CONCAT('You should usually place ',MyClass),' Kermit')
- Writeln AnyS
- Writeln "in server mode by typing SERVER when"
- Set AnyS = CONCAT( MyClass , ' Kermit asks for a command.')
- Writeln AnyS
- Writeln " "
- Set AnyS = CONCAT(CONCAT('Then you can get a file from ',MyClass), ' by hitting')
- Writeln AnyS
- Set AnyS = CONCAT(CONCAT('the ',PgDn),' key on the PC keypad.')
- Writeln AnYs
- Writeln " "
- Set AnyS = CONCAT(CONCAT('You can send a file to ',MyClass), ' by hitting')
- Writeln AnyS
- Set AnyS = CONCAT(CONCAT('the ',PgUp),' key on the PC keypad.')
- Writeln AnYs
- Writeln " "
- Input "Hit a key to continue with login ... " AnyS
- Writeln " "
- EndProc KermNote
- *
- * Clear the screen
- Clear
- *
- * Don't change keys when changing emulation
- *
- SetParam ' ' '0'
- *
- * Set VT100 mode
- *
- SetParam 'te' '3'
- *
- * Remember if enhanced keyboard or not
- *
- Set EnhType = EnhKeybd
- *
- * Indicate what to do with menu.
- *
- Writeln " "
- Writeln " Choose the system to which you want to connect."
- Writeln " "
- *
- * Get name of system to be used
- *
- Menu SysType 15 10 3 'Choose system:' 'a) Cyber NOS' 'b) Cyber NOS/VE' 'c) Vax' 'd) Econ/KGSM IBM 4361' 'e) Luis' 'o) Other
- *
- * Set stuff depending upon system
- *
- DoCase SysType Of
- * Cyber NOS
- Case 1
- SetParam 'BS' '^H'
- SetParam 'DE' ''
- SetParam 'VC' '0'
- Key 'cdcnos.fnc'
- Set Class = 'Cyber'
- Writeln " "
- Writeln "Parameters set for accessing Cyber 845 NOS system."
- Writeln " "
- Call KermNote
- Call WakePacx
- Repeat
- SText "|"
- WaitString "parity" 5
- Until ( WaitFound )
- WaitString "NAME" 15
- EndCase
- * Cyber NOS/VE
- Case 2
- SetParam 'BS' '^H'
- SetParam 'DE' ''
- SetParam 'VC' '0'
- Key 'cdcnos.fnc'
- Set Class = 'VE'
- Writeln " "
- Writeln "Parameters set for accessing Cyber 845 NOS/VE system."
- Writeln " "
- Call KermNote
- Call WakePacx
- Repeat
- SText "|"
- WaitString "parity" 5
- Until ( WaitFound )
- WaitString "User:" 15
- EndCase
- * Vax
- Case 3
- SetParam 'DE' '^H'
- SetParam 'BS' ''
- SetParam 'VC' '0'
- IF ( EnhType = 1 ) THEN
- Key 'decvaxe.fnc'
- ELSE
- Key 'decvax.fnc'
- ENDIF
- Set Class = 'Vax'
- Writeln " "
- Writeln "Parameters set for accessing Vax 785 system."
- Writeln " "
- Call KermNote
- Call WakePacx
- Repeat
- SText "|"
- WaitString "sername" 2
- Until ( WaitFound )
- EndCase
- * KGSM/ECON Ibm
- Case 4
- SetParam 'BS' '^[[OD'
- SetParam 'DE' '^[[OD'
- SetParam 'VC' '1'
- IF ( EnhType = 1 ) THEN
- Key 'ibmcmse.fnc'
- ELSE
- Key 'ibmcms.fnc'
- ENDIF
- Set Class = 'Ibm'
- Writeln " "
- Writeln "Parameters set for accessing KGSM/ECON IBM 4361."
- Writeln " "
- Call KermNote
- Call WakePacx
- EndCase
- * LUIS Ibm
- Case 5
- SetParam 'BS' '^[[OD'
- SetParam 'DE' '^[[OD'
- SetParam 'VC' '1'
- IF ( EnhType = 1 ) THEN
- Key 'ibmcmse.fnc'
- ELSE
- Key 'ibmcms.fnc'
- ENDIF
- Set Class = 'Luis'
- Writeln " "
- Writeln "Parameters set for accessing University Library LUIS system."
- Writeln " "
- Call WakePacx
- WaitString "start" 5
- SText "~|"
- WaitString "TYPE:" 5
- SText "~VT100|"
- SText "~|"
- EndCase
- *
- Case Else
- Writeln " "
- Writeln "Parameters left at default values."
- Writeln " "
- Exit
- EndCase
- *
- EndDoCase
-