home *** CD-ROM | disk | FTP | other *** search
- /* Logon macro for TransAmiga
-
- Asks user if he/she wishes to view the new message list. Then prompt
- him/her to do a mail check, and allows the user to read and messages to
- him/her. Also prompts for a new files listing.
- */
-
- options results
- options failat 10
-
- CSI = '1b'x||'['
- CRLF = '0d'x||'0a'x
- FF = '0c'x
-
- userinfo 'x' ; ansi=result
-
- /* Initialize ANSI variables - useful code section for your ARexx macros. */
- if ansi='ON' then do
- OFF = CSI'0m' ; BO = CSI'1m' ; UL = CSI'4m' ; IT = CSI'3m'
- CL1 = CSI'31m' ; CL2 = CSI'32m' ; CL3 = CSI'33m' ; CL4 = CSI'34m'
- CL5 = CSI'35m' ; CL6 = CSI'36m' ; CL7 = CSI'37m'
- end
- else do
- OFF = '' ; BO = '' ; UL = '' ; IT = ''
- CL1 = '' ; CL2 = '' ; CL3 = '' ; CL4 = ''
- CL5 = '' ; CL6 = '' ; CL7 = ''
- end
-
- if ~show('L',"rexxsupport.library") then
- call addlib "rexxsupport.library",0,-30
-
- /* Ask to see new message list */
- queryy FF||CRLF||CL7||'View new message list'
- answ = upper(result)
- if ~carrier then exit 10
-
- if answ ~= 'N' then newmsgs
-
- /* Check for messages to the user. If any are found, ask if he/she wants */
- /* to read them now, and if so, read all marked messages (since all found */
- /* messages get automatically marked). */
-
- queryn CRLF||CL7||'Check for messages to you'
- answ = upper(result)
- if ~carrier then exit 10
-
- if answ = 'Y' then do
- checkmsgs
- if ~carrier then exit 10
-
- if result=1 then do
- queryy CL7||'Read these messages now'
- answ = upper(result)
- if ~carrier then exit 10
-
- if answ ~= 'N' then readmarkedmsgs
- end
- end
-
- queryn CRLF||CL7||'View new files'
- answ = upper(result)
- if ~carrier then exit 10
-
- if answ = 'Y' then newfiles
-
- print
-
- exit
-
-
-