home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
pssst.zip
/
PSMENU.PRG
< prev
next >
Wrap
Text File
|
1986-08-14
|
5KB
|
137 lines
* Program..: PSMENU.PRG
* Author...: Maj Jim McMurry
* Date.....: 07/12/86
* Notice...: Copyright 1986, All Rights Reserved
* Notes....: A Sub-Routine to print the main menu for pSSSt
* From an idea from Mac 'Mac'Feggan
* Reserved.:
*
*
DO CASE
CASE gmodel = 'Z'
STORE CHR(27)+CHR(112) TO rvideo
STORE rvideo + ' ' to rvideo
STORE CHR(27)+CHR(113) TO nvideo
STORE CHR(27)+CHR(70) TO grafon
STORE CHR(27)+CHR(71) TO grafoff
STORE CHR(27)+CHR(120)+CHR(53) TO gcuroff
STORE CHR(27)+CHR(121)+CHR(53) TO gcuron
? gcuroff
* --- a global line maker
STORE 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'+;
'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' TO gline
STORE 'f' + $(gline,1,76) + 'c' TO topln
STORE 'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii';
+'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii' TO filln
STORE '`' TO vert
STORE 'e' + $(gline,1,76) + 'd' TO btmln
@ 1, 0 SAY grafon + topln + grafoff
STORE 2 TO line
DO WHILE line <= 18
@ line,0 SAY grafon+vert+grafoff
@ line,2 SAY grafon + filln + grafoff
@ line,77 SAY grafon + vert + grafoff
STORE line + 1 TO line
ENDDO
@ 19, 0 SAY grafon + btmln + grafoff
STORE 'f' + $(gline,1,13) + 'c' TO topln
STORE '`' TO vert
STORE 'e' + $(gline,1,13) + 'd' TO btmln
STORE ' ' TO filln
STORE grafon + gline + grafoff to gline
CASE gmodel = 'I'
STORE ' ' TO RVIDEO
STORE ' 'TO NVIDEO
STORE ' ' TO gcuroff
STORE ' ' TO gcuron
STORE CHR(205)+CHR(205)+CHR(205)+CHR(205)+CHR(205) TO gline
STORE gline + gline + gline + gline TO gline
STORE gline + gline + gline + gline to gline
STORE $(gline,1,78) TO gline
STORE CHR(201) + $(gline,1,78) + CHR(187) TO topln
STORE CHR(177)+CHR(177)+CHR(177)+CHR(177)+CHR(177) TO filln
STORE filln + filln + filln + filln + filln TO filln
STORE filln + filln + filln + CHR(177) TO filln
STORE CHR(186) + ' ' + filln + ' ' + CHR(186) TO filln
STORE CHR(200) + $(gline,1,78) + CHR(188) TO btmln
@ 1, 0 SAY topln
STORE 2 TO line
DO WHILE line <= 18
@ line, 0 SAY filln
STORE line + 1 TO line
ENDDO
@ 19, 0 SAY btmln
STORE CHR(201) + $(gline,1,13) + CHR(187) TO topln
STORE CHR(186) TO vert
STORE CHR(200) + $(gline,1,13) + CHR(188) TO btmln
STORE ' ' TO filln
CASE gmodel = 'O'
STORE ' ' TO gcuron
STORE ' ' TO gcuroff
STORE ' ' TO grafon
STORE ' ' TO grafoff
STORE ' ' TO rvideo
STORE ' ' TO nvideo
STORE ' ' TO topln
STORE ' ' TO btmln
STORE ' ' TO vert
STORE ' ' TO filln
STORE '----------------------------------------';
+'----------------------------------------' TO gline
ENDCASE
DO CASE
CASE gmodel = 'Z'
@ 4,30 SAY ' ' + grafon + topln + grafoff + ' '
@ 5,30 SAY ' ' + grafon + vert + grafoff
@ 5,45 SAY grafon + vert + grafoff + ' '
@ 6,30 SAY ' ' + grafon + btmln + grafoff + ' '
@ 5,32 SAY filln
CASE gmodel = 'I'
@ 4,31 SAY topln
@ 5,31 SAY vert
@ 5,45 SAY vert
@ 6,31 SAY btmln
@ 5,32 SAY filln
ENDCASE
STORE 0 TO mcount
DO WHILE mcount <= 25
STORE mcount + 1 TO mcount
ENDDO
@ 5,32 SAY ' p S '
STORE 0 TO mcount
DO WHILE mcount <= 25
STORE mcount + 1 TO mcount
ENDDO
@ 5,32 SAY ' p S S '
STORE 0 TO mcount
DO WHILE mcount <= 25
STORE mcount + 1 TO mcount
ENDDO
@ 5,32 SAY ' p S S S '
STORE 0 TO mcount
DO WHILE mcount <= 25
STORE mcount + 1 TO mcount
ENDDO
@ 5,32 SAY ' p S S S t ! '
STORE 0 TO mcount
DO WHILE mcount <= 25
STORE mcount + 1 TO mcount
ENDDO
IF gmodel = 'Z' .OR. gmodel = 'I'
@ 10,23 SAY rvideo + ' A SUSPENSE MANAGEMENT PROGRAM ' + nvideo
@ 11,25 SAY rvideo + ' Version 2.0, 15 June 1986 ' + nvideo
@ 12,31 SAY rvideo + ' By ANGSC/DOSC ' + nvideo
@ 15,30 SAY rvideo + ' Maj Jim McMurry ' + nvideo
@ 16,32 SAY rvideo + ' AV 273-8303 ' + nvideo
ELSE
@ 10,23 SAY ' A SUSPENSE MANAGEMENT PROGRAM'
@ 11,25 SAY ' Version 2.0, 15 June 1986'
@ 12,31 SAY ' By ANGSC/DOSC'
@ 15,30 SAY ' Maj Jim McMurry'
@ 16,32 SAY ' AV 273-8303'
RELEASE col, heading, rvideo, nvideo, topln, filln, btmln, mcount, grafon
RELEASE grafoff, vert
RETURN
* EOF PSMENU.PRG]