home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
351-375
/
apd355
/
starttext
/
starttext.amosSourceCode
Wrap
AMOS Source Code
|
1991-07-30
|
1KB
|
40 lines
Screen Open 0,640,512,16,Hires
'***************************************************************
'* Text Viewer V0.1 by Gary Fearn 30/8/90 *
'* *
'* Use the left Mouse button to quit reading *
'* Use the right Mouse button to pause text *
'***************************************************************
'
Global A$,FILELEN,RMARGIN,LMARGIN
RMARGIN=4 : LMARGIN=0 : Rem Change these to change distance from edges
Screen Open 0,650,256,4,Hires
Screen Display 0,128,,,
Curs Off : Flash Off
Cls : Locate LMARGIN,0
_GETFILE
_PROCESS
Wait Key
Default
Edit
'
Procedure _GETFILE
F$="daug02:starttext.ascii"
If F$="" Then End
Open In 1,F$
FILELEN=Lof(1)
A$=Input$(1,FILELEN)
End Proc
Procedure _PROCESS
For A=1 To FILELEN
R$=Mid$(A$,A,1)
If Y Curs=>30 Then Vscroll 3 : Locate ,29
If X Curs=80-RMARGIN Then Locate LMARGIN,Y Curs+1
If Asc(R$)=9 Then Print Tab$; : Goto MORE
If Asc(R$)=10 Then Locate LMARGIN,Y Curs+1 : Goto MORE
Print R$;
MORE:
If Mouse Key=1 Then Exit
If Mouse Key=2 Then Goto MORE
Next A
End Proc