home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
TE2HOST.ZIP
/
GOODBYE.SCR
< prev
next >
Wrap
Text File
|
1990-12-27
|
1KB
|
57 lines
;; --------------------------------------------------------------------------
;;
;; GoodBye.scr -- Host mode script suite for TE/2
;; Copyright 1990, Oberon Software, All rights reserved
;;
;; --------------------------------------------------------------------------
global string WarnOn
global string WarnOff
global string CmdStack
integer KeyIn
;; ------------------------------------------------------------------------
;; Ask for confirmation at exit and hangup if we get it.
subroutine CheckOK
if ((KeyIn == asciival("Y")) or (KeyIn == asciival("y")))
if connected
transmit("^M^JY'all come back now, here?^M^J^J")
endif
hangup(false)
endif
CmdStack = ""
endsub
subroutine GoodBye
if connected
if strlen(CmdStack)
KeyIn = asciival(CmdStack)
else
transmit("^M^J^J%sDo you really want to exit [y/N]?%s ", WarnOn, WarnOff)
KeyIn = rgetc(30, 1)
if timedout
KeyIn = asciival("Y")
endif
endif
gosub CheckOK
endif
endsub
program
gosub GoodBye
end