%CO:A,12,72%LIST.CLI by Larry Palmer (3089).






This is called from a procedure called PROCL as follows:-





Action:











This leaves a listing of your BASIC program in PipeDream ready for 
editing.  It also gets rid of the pesky file in :RAM.-.  It assumes 
only one BASIC program and only one suspended PipeDream spplication
(and that must be "empty", i.e. nothing written in it).  Very long 
lines (over 95 characters) must be viewed using normal "wrap off" 
methods.  "Wrap" is turned off to stop PipeDream from breaking long 
lines itno two or more shorter ones, which will ot load back into 
BASIC.  The accompanying CLI file (which is identical to the first 
indented paragraph but in "plain text"), should be renamed %H2%list.cli%H2%
and stored in a directory called CLIs, or the BASIC PROCedure will not 
call it.  Alternatively you can change the name after *CLI .* in the 
procedure - just make sure they are both the same!

%CO:B,12,60%

LIST#+S~E#-S
#P|FL~L:RAM.-/S.sgn~D~D~DY~E|Y|~D|Y|~U|N.J~E
#B*DELETE :RAM.-/S.sgn~E
#P|FC|Dlisting~E|W35~E|H95~E|O~DN~D~DN|[



DEF PROCL
*CLI .*list.cli
ENDPROC

This CLI will LIST the program to the file :RAM.-/S.sgn
and then closes the file.  Then it enters PipeDream, loads 
the file S.sgn as Plain Text, deletes the two garbage lines 
(the top one and the bottom one), adds a new top line and 
inserts the "jam" character .J.  It then enters BASIC and 
issues a *DELETE command to delete :RAM.-/S.sgn, and then 
returns to PipeDream, it changes the file name to 
"listing", the width of column A and the right margin 
setting to fill the entire screen, turns off the borders 
and turns "wrap" off too.  Remember to rename X017.cli
as LIST.CLI.
%CO:C,12,48%%CO:D,12,36%%CO:E,12,24%%CO:F,12,12%