Hardcopy 2.0

Author(s): Al Feng
Publication: Nite-Times News
Pub Details: Nite-Times News v5 n4 (Volume 5, Issue 4)
Date: July - August 1991
Pages: 10-11

HARDCOPY 2.0 (CATUG PDL disk) is a transition program between the original HARDCOPY and QLad 2.nnn.

While the method of creating the columns is crude in that it requires opening up four additional windows it is included to give beginning programmers an idea of how the screen can be manipulated.

Compare this program with both QLad_BAS, QLad_EXE, & QLUTter (an early version of QLUTter_tv which is also included on the CATUG PDL disk).

Use this program as a starting point for creating your own front-end/utility program.

HAPPY TRAILS,
AND COMPUTING,
TO YOU!

100 REMark  ***  HARDCOPY  ***
105 REMark *** by Al Feng ***
110 MODE 4
115 WINDOW 482,236,15,2: INK 4: PAPER 7: BORDER 1,4
120 dv$ = "ser1": drv$ = "1": type$ = "flp"
130 OPEN#8,scr_512x255a0x0: PAPER#8,7: BORDER#8,1,7: INK#8, 4
140 OPEN#10,SCR_458X14a29X240: PAPER#10,7: BORDER#10,1,7: INK#10,4
145 :
150 OPEN#11,SCR_124X191a26X37: PAPER#11,7: INK#11,0
160 OPEN#12,SCR_124X191a136X37: PAPER#12,7: INK#12,0
170 OPEN#13,SCR_124X191a248X37: PAPER#13,7: INK#13,0
180 OPEN#14,SCR_124X191a371X37: PAPER#14,7: INK#14,0
190 :
200 DEFine PROCedure screen
210 DIM dir$(78,15): DELETE type$ & drv$ & "_FILE.DIRectory"
220 OPEN_NEW#6, type$ & drv$ & "_FILE.DIRectory"
230 DIR#6, type$ & drv$ & "_": CLOSE#6
240 OPEN_IN#7, type$ & drv$ & "_FILE.DIRectory":
245 FOR c=0 TO 78
250 IF EOF(#7) THEN EXIT c
260 INPUT#7,dir$(c)
265 END FOR c: CLOSE #7: c=c-1
270 AT 1,19: PRINT dir$(0),,,,!!dir$(1)
280 CLS#11: CLS#12: CLS#13: CLS#14: FOR a=0TO 18
290 IF a<1 THEN a=a+a
300 FOR n=1+a+a+a: INK#11,5: PRINT#11,"{";: INK#11,2: PRINT#11,CHR$(n+a+48)!: INK#11,2: PRINT#11,"} ";: INK#11,0: PRINT#11, dir$(n+a+1)
310 FOR n=2+a+a+a: INK#12,5: PRINT#12,"{";: INK#12,2: PRINT#12,CHR$(n+a+48)!: INK#12,2: PRINT#12,"} ";: INK#12,0: PRINT#12, dir$(n+a+1)
320 FOR n=3+a+a+a: INK#13,5: PRINT#13,"{";: INK#13,2: PRINT#13,CHR$(n+a+48)!: INK#13,2: PRINT#13,"} ";: INK#13,0: PRINT#13, dir$(n+a+1)
330 FOR n=4+a+a+a: INK#14,5: PRINT#14,"{";: INK#14,2: PRINT#14,CHR$(n+a+48)!: INK#14,2: PRINT#14,"} ";: INK#14,0: PRINT#14, dir$(n+a+1)
340 NEXT a: END FOR a
350 END DEFine screen
360 :
370 CLS: CLS#8: INK 0: PRINT\ " PRINT from "; type$; drv$; "_": BORDER 1,2: INK 2
380 screen
390 CLS#10: PRINT#10;"{";: INK#10,2: PRINT#10, " PREFIX ";: INK#10,5: PRINT#10,"} TO ";: INK#10,0: UNDER#10, 1;: PRINT#10\ "PRINT";: UNDER#10,0: INK#10,5: PRINT#10," [ . ] " ;type$;"1_ [ 0 ] " ;type$;"2_ [ / ] QUIT"
400 INK 4: AT 1, 35: PRINT "|-- HARDCOPY --|": INK 0
410 REPeat key
420 akey = CODE(INKEY$)
430 IF akey>45 AND akey<128 THEN EXIT key
440 END REPeat key
450 akey=akey-48
460 IF akey=-2 THEN
470 IF drv$>1 THEN drv$=drv$-1: GO TO 370
480 END IF
490 IF akey=-1 THEN CLS: PRINT \\\,,, "READY TO CLEAR PROGRAM" \ ,,," HIT <ANYKEY> TO EXIT" \\\\,,, "[CTRL+SPACE] FOR BASIC": PAUSE: NEW
500 IF NOT akey THEN
510 drv$=drv$+1: GO TO 370
520 ELSE
530 IF akey<c THEN COPY_N type$ & drv$ & "_" & dir$(akey+1) TO dv$
540 GO TO 390
550 END IF

NOTE: This program, QLAD_EXE & QLUTter [(3.096 (tv_version)] is also available on the CATUG Public Domain Library Disk.

The disk charge is $2.00 which covers the cost of the medium & postage. Specify 5.25″ or 3.5″ disk.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.