setls

Developer(s): Bob Mitchell
Date: 1989
Type: Program
Platform(s): TS 2068
Tags: Printer

A short postscript to Bob Mitchell’s disk indexer printing utility (indxLP): it sets the printer’s line spacing to narrow or normal, so that with the condensed font up to 1400 disk index records fit on one sheet of paper, both sides. Answer 1 for narrow or 0 for normal; the program sends the escape codes from DATA line 200 (ESC A 8) or 300 (ESC 2) to the printer on port 127, waiting each time until the printer reports ready (IN 127 = 237).

The codes are for the author’s Smith Corona Fastext 80 printer: check your printer’s manual for its equivalents. Line 140 returns to the author’s Ramdisk menu and line 1000 saves the program, both with the Larken disk system (RANDOMIZE USR 100); they are not needed on tape.

Published in Sinc-Link May-June 1989 (Bob’s Notebook: Disk Index, Sorting Routines).

Related Articles

Disk index utility; MSCRIPT sort.

Image Gallery

Source Code

10 REM change line spacing
15 GO TO 100
20 LET a=IN 127: IF a=237 THEN  RETURN
22 GO TO 20
100 CLS : INPUT "1=narrow  0=normal",ls
110 IF ls THEN GO SUB 20: RESTORE 200: READ j: FOR i=1 TO j: GO SUB 20: READ k: OUT 127,k: NEXT i
120 IF NOT ls THEN GO SUB 20: RESTORE 300: READ j: FOR i=1 TO j: GO SUB 20: READ k: OUT 127,k: NEXT i
130 PRINT "Line spacing ";("Normal" AND NOT ls)+("Narrow" AND l s)
140 PRINT "Press a key for Ramdisk Menu": PAUSE 0: RANDOMIZE USR 100: GO TO 4: RANDOMIZE USR 100: NEW
200 DATA 3,27,65,8
300 DATA 2,27,50
400 STOP
1000 RANDOMIZE USR 100: SAVE "setls.B1" LINE 100

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