QL Word Processor AKA QLWP AKA Quill–the least acclaimed of the four Psion software programs bundled with the Sinclair QL–is still a good word processor, especially with added memory and RAMdisk. Quill’s chief fault is that it is a bit slow in carrying out some operations. Quill’s chief virtue is its ease of use; it is even simpler than Tasword II for the TS 2068. So much for criticism, now for some tips.
In this and future articles on Quill, I will first deal with rather elementary things which it is essential for any user of Quill to master and then with more complex matters.
If you have not already done so, clone a working copy of Quill from the master Quill cartridge.
Put a blank or no longer needed Microdrive cartridge in Microdrive 1. If it is a new cartridge, format it five times using:
FOR F=1 TO 5: FORMAT MDV1_
Otherwise, put your master Quill program cartridge in Microdrive 2, then key and enter:
LRUN MDV2_CLONE_BAS
This will take about ten minutes. When complete, return your Quill master program to its protective case and store it in a safe place, load a formatted file cartridge in Microdrive 2, then key and enter:
LRUN MDV1_BOOT
Quill should load in under 20 seconds. You are now ready to write! (To load and run Quill from boot_up, just insert a Qull program cartridge in Microdrive 1 and key F1.)
Quill like most software programs has preset (or default) values for line spacing, margins, tab settings, ect., so you may, if you wish, proceed immediately. (To set or check what values are set you will have to use various commands.) If you are not impatient to begin the great American novel, hold off a few minutes, and let’s check out your Quill monitor screen.
At the top is the control area where prompts and reminders are shown and where additional instructions will appear from time to time. For HELP it says to press F1. Try it. Once in the HELP facility, key F1 again for instructions on how to use the facility. Key ESC to return to the program.
Keying F2 “toggles” the control area on and off, creating a larger working area (you can usually infer what’s going on without the control area visible by referring to the status area–the three lines below the working area.)
Reading to the right in the control area is a block indicating that you can move the red cursor using the cursor (arrow) keys. (You cannot move the cursor on a blank screen or beyond the end of the text for the first time using the cursor keys; if you wish to leave a space at the top of the working area or later between paragraphs, you must use the ENTER key which starts a new indented paragraph or the SPACE bar or TABULATE key. Using ENTER to do this has the disadvantage of creating a new paragraph each time it is keyed which will slow your later movement through the text using the SHIFT and up and down cursor keys.)
With text on the screen, keying the up and down cursor keys moves the cursor up or down one line; keying the left and right cursor keys moves the cursor one character space left or right. Depressing the SHIFT key while keying the up and down cursor keys moves the cursor up or down one paragraph at a time. Depressing the SHIFT key while keying the right and left cursor keys moves the cursor right or left a word at a time.
Type in a paragraph of four or five lines; DO NOT USE THE ENTER KEY TO CHANGE LINES–just keep on typing without regard to where you are on a line and don’t attempt to separate words at the end of a line or correct any errors. Quill will change lines for you. Now key ENTER to begin a new indented paragraph. Type a two or three line paragraph, then key ENTER again to begin a third indented paragraph. Practice moving the cursor right and left and up and down using the cursor keys and SHIFT plus the cursor keys. Do not worry that you cannot always place the cursor precisely where you wish: this is an unfortunate quirk of Quill! Check “Cursor” in the HELP facility.
The wide central window in the control area displays the information shown upon loading Quill, two sets of commands when F3 is keyed, and screen prompts during command sequences. The top line of the center window indicates you are in the Insert mode wherein characters keyed appear at the cursor position, displacing any existing text to the right–note that if more than one word is inserted the text will separate to permit a longer section of text to be inserted. Contrary to what it says in you QL User Guide (QLUG), the text will not rejoin itself automatically. To rejoin the text, place the cursor one space past the final character at the front of the separation and press CTRL and the right cursor key.
The bottom line in the central window of the control area advises how to change to the Overwrite mode, the other Quill mode, by depressing SHIFT and keying F4. In the Overwrite mode, which you will find is much slower than the Insert mode, you can type over existing tex. Use of the Overwrite mode, which I tend to forget is available, is frequently quicker and more useful way to edit text. Note that the current Quill mode is indicated in the status area. Check “Insert” in the HELP facility.
The second item in the central window of the control area reminds you to key ENTER to begin a new indented paragraph. Check “ENTER key” in HELP.
The third line indicates that to delete text, you depress CTRL and a cursor key. CTRL and the left cursor key delete the character to the left of the cursor. CTRL and the right cursor key delete the character under the cursor; CTRL and the cursor key delete all text on the line to the left of the cursor; CTRL and the right cursor key delete all text on the line under and to the right of the cursor. Depressing the SHIFT and CTRL keys and the left cursor key deletes the word to the left of the cursor; SHIFT, CTRL, and the right cursor key delete the word to right of the cursor. Check “Delete” in HELP.
The window to the right of the central window in the control area reminds you to key F4 to select another of Quill’s other four typefaces (bold, underlined, high [superscript], and low [subscript]. Combinations are possible, for example, bold, underlined, high script. Another option is made available by keying F4–the Paint option with which the typeface of existing text may be changed; again, combinations are possible. Key F4 and follow screen prompts to add bold and underlined text, superscripts, and subscripts to your practice paragraphs. Use the Paint option to change the typeface of existing text. Check “Typeface” in HELP.
The upper right window in the control area prompts you to key F3 to select and toggle between two sets of Quill commands.
In Quill, unlike Archive, the command to be selected must appear in the central window of the control area. Once a command sequence is selected, subsequent prompts and instructions will appear in this window. A command is selected by keying the first letter of the command. Key F3, then Key F3 again, noting the commands available. When the command Justify is displayed, Key J. Use the up cursor key to move the cursor to the beginning of the second paragraph. Press the SPACE bar and note that the justification of the text in the second two paragraphs is changed. Note also that text cannot be added while in a command sequence. Key ENTER to return to the normal (Insert or Overwrite mode.) It is not a good idea to use ESC to terminate a command sequence; in some cases this might cancel a desired command change.
ESC is used to abort a command sequence in progress or to perform some designated function within a command sequence.
The working area consists of 17 lines of text with the control area present or 21 lines without the control area.
The status area consists of the three lines at the bottom of the screen. The uppermost of these is the input line editor on which the cursor, command sequence in use, and prompts sometimes appear, and on which entries (filenames, ect.) are made. The cursor will appear on this line when an input is required. The Quill mode, typeface, number of words typed, document name, and the page and line number of the cursor line are displayed on the bottom two lines in the status area.
PRACTICE, PRACTICE, PRACTICE all of these procedures now or you may develop ingrained bad habits which will slow you down later!
So far, this article has dealt with elementary but essential procedures that must be mastered. For the novice, don’t wait for the next issue of TDM to continue learning Quill. Make use of the Quill section of the QLUG, and the HELP facility to teach yourself to use the program. Make sure you fully understand each command sequence as you proceed. If you are using the basic 128k QL, I advise you to SAVE your document every twenty or thirty minutes on two Microdrive cartridges and begin a new document file when the document can no longer be stored in RAM, that is, when Microdrive 2 begins to operate during text insertion. Leave at least 30 sectors free on your file cartridge when creating longer documents. Next time out I will assume that you have progressed to “the more experienced Quill user” status.
Tips for the More Experienced Quill User
Once your program is configured using CONFIG_BAS and your printer data is installed using INSTALL_BAS, delete these programs and INSTALL_DAT from your Quill working copy to make room for auxiliary SuperBASIC and machine code programs relevant to word processing. On an unexpanded QL, it is a toss-up wether you should add machine code programs to multitask with Quill; it may be better to save most of the unused RAM for document files. But you can expand your BOOT file to include many auxiliary procedures and functions without reducing the available RAM for document files significantly.
On my 640k QL, I multitask four programs with Quill: QDTG, a date-time-group program which appears in the status area, based on a program appearing in QUANTA and three proprietary programs, CAPS, QUILL_KEY and MINI_CALC. My BOOT program proper consists of about 46 lines and uses QL TOOLKIT II commands. The bulk of the BOOT program consists of about 25 defined procedures and functions. With Quill loaded in RAMdisk, I can quickly QUIT Quill, perform any necessary tasks–most frequently saving my current document file to Microdrives–and return to Quill in a flash.
Listing 1 is my Quill BOOT program. It can be easily modified to suit your needs and equipment mainly by deleting lines. Listing 2 is a machine-code program loader for a program, QtoRAM1, which transfers Quill from Microdrive 1 to RAMdisk 1, making necessary provisions for efficient RAM management. Listing 3 is the QDTG program loader.
Most of the defined procedures and functions in Listing 1 are, I trust, self-explanatory. If you can’t figure something out, drop me a line, in care of TDM and include a self-addressed, stamped envelope.
[If you would like me to send you my Quill BOOT program on Microdrive, including non-proprietary machine code programs; the programs in listings 2 and 3; four PRINTER_DAT programs; and a few useful SuperBASIC programs of my own devising, you may order it through TIME DESIGNS for $15. Send check/money order to: TDM, 29722 Hult Rd. Colton, OR 97017. VISA and MASTERCARD charges accepted–telephone orders O.K. Please specify “Mike’s Quill Cartridge” when ordering.]
NEXT MONTH: More on Quill, particularly on increasing the number of Quill typefaces readily available to you.

Listing 1
2 FORMAT ram2_200: SBYTES ram2_space,131072,60000
4 CLEAR: WINDOW 512,256,0,0: CSIZE 1,1: CLS
6 PRINT " ram1 = ";
8 FORMAT ram1_240
10 PRINT " ram5 = ";
12 FORMAT ram5_360
14 PRINT " Setting up QUILL on RAMdisk"
16 COPY mdv1_quil_hob TO ram1_quil_hob
18 COPY mdv1_compare_exe TO ram1_compare_exe
20 COPY mdv1_solhead2_doc TO ram5_solhead2_doc
22 COPY mdv1_lhead_doc TO ram5_lhead_doc
24 COPY mdv1_acad_doc TO ram5_acad_doc
26 COPY mdv1_fastcopy TO ram1_fastcopy
28 PRINT: PRINT " Do you wish to set clock (Y/N)? "
30 IF INKEY$(-1)=="y": PRINT :PRINT " SDATE yyyy,mm,dd,hh,mm,ss"\\" Key and ENTER 'C' to continue": STOP
32 CLS: PRINT " Executing multitasked programs"
34 EXEC mdv1_quill_key
36 EXEC mdv1_mini_calc
38 EXEC mdv1_caps
40 EXEC mdv1_qdtg
42 CLS: PRINT " Transferring Quill to RAM1_"
44 EXEC_W mdv1_qtoram1
46 CLS: PRINT " Select Printer Driver"
48 PRINT " 1 - Std STAR SG-10"
50 PRINT " 2 - Std STAR Delta 10"
52 PRINT " 3 - Std EPSON FX80 Compatibles"
54 PRINT " 4 - Book Manuscript"
56 INPUT " Your choice? ";pr
58 SELect ON pr
60 =1: COPY mdv1_printer1_dat TO ram1_printer_dat
62 =2: COPY mdv1_printer2_dat TO ram1_printer_dat
64 =3: COPY mdv1_printer3_dat TO ram1_printer_dat
66 =4: COPY mdv1_printer4_dat TO ram1_printer_dat
68 END SELect
70 CLS: PRINT " Copy MDV2 files to RAM5"
72 WCOPY mdv2_,ram5_
74 PRINT "More? ": IF INKEY$(-1)=="y": GO TO 72
76 FORMAT ram2_
78 PRINT " Executing QUILL"
80 CLOSE #1: CLOSE #2: WINDOW #0,400,20,35,215
82 EXEC_W ram1_quill
84 OPEN #1,con: OPEN #2,con
86 wscr
88 CSIZE 1,1: PRINT " Copy ram5_ document files to mdv2_"
90 WCOPY ram5_,mdv2_
92 CLS: DIR mdv2_: PAUSE 150
94 PRINT: PRINT " Key and enter 'reb' to reboot QUILL"\\" or 'lreb' to load more documents and reboot QUILL"\\" or 'cop 1' / 'cop 2' to backup files on mdv1_ or mdv2_"
96 STOP
9000 REMark PROCEDURES & FUNCTIONS
9002 DEFine PROCedure C
9004 CONTINUE
9006 END DEFine
9008 DEFine FuNction SGN(n): IF n=0: RETurn 0: ELSE RETurn n/ABS(n)
9010 DEFine FuNction F2C(f): RETurn (f-32)*5/9
9012 DEFine FuNction C2F(C): RETurn C*9/5+32
9014 DEFine FuNction R10: RETurn RND(1 TO 10)
9016 DEFine FuNction R100: RETurn RND(1 TO 100)
9018 DEFine FuNction DICE: LOCal a,b: a=RND(1 TO 6): b=RND(1 TO 6): RETurn a+b
9020 DEFine PROCedure LIST1154
9022 LOCal a,b,n$
9024 CLS #2
9026 INPUT " Program name? ";n$
9028 INPUT " Enter program start line ";a
9030 INPUT " Enter program end line ";b
9032 OPEN #3,ser1
9033 PRINT #3,CHR$(27);CHR$(82);CHR$(6)
9034 PRINT #3,CHR$(27);CHR$(77);CHR$(11)
9036 PRINT #3,CHR$(27);CHR$(81);CHR$(54)
9037 PRINT #3,CHR$(27);CHR$(78);CHR$(6)
9038 PRINT #3,CHR$(14);n$: PRINT #3
9040 PRINT #3,CHR$(27);CHR$(66);CHR$(4)
9042 LIST #3, a TO b
9044 PRINT #3,CHR$(27);CHR$(66);CHR$(5)
9046 PRINT #3,CHR$(12)
9048 CLOSE #3
9050 END DEFine
9052 DEFine PROCedure wscr
9054 WINDOW #0,508,40,4,216: WINDOW 508,216,4,0: WINDOW #2,508,216,4,0
9056 PAPER 0: INK 7: PAPER #2,0: INK #2,4
9058 MODE 4
9060 CLS #0: CLS: CLS #2
9062 END DEFine
9064 DEFine PROCedure DSCR2
9066 WINDOW#0,480,56,16,200: WINDOW#1,180,200,320,0: WINDOW#2,295,200,16,0
9068 PAPER#0,0: INK#0,7: CLS#0: PAPER 0: INK 7: CLS: PAPER#2,0: INK#2,7: CLS#2
9070 MODE 4
9072 END DEFine
9074 DEFine PROCedure DSCR
9076 WINDOW#0,480,56,16,200: WINDOW#1,480,200,16,0: WINDOW#2,480,200,16,0
9078 PAPER#0,0: INK#0,7: CLS#0: PAPER 0: INK 7: CLS: PAPER#2,0: INK#2,7: CLS#2
9080 MODE 4
9082 END DEFine
9084 DEFine PROCedure listdir
9086 CLS: OPEN #3,ser1
9088 OPEN_NEW #4, ram5_MF2
9090 PRINT #3,CHR$(27)&"R"&CHR$(10)
9092 PRINT #3,CHR$(27)&"N"&CHR$(6)
9094 PRINT #4,CHR$(27)&"N"&CHR$(6)
9096 PRINT #3,CHR$(27)&"M"&CHR$(10)
9098 PRINT #4,CHR$(27)&"M"&CHR$(10)
9100 INPUT "MDV Number? ";k$
9102 PRINT "q to quit"
9104 INPUT "MDV Name? ";f$
9106 IF f$=="q" THEN GO TO 9122
9108 PRINT #3,CHR$(27)&"E"
9110 PRINT #3,CHR$(14);f$: PRINT #3
9112 PRINT #4,CHR$(14);f$: PRINT #4
9114 DIR #3,"mdv" & k$ & "_"
9116 DIR #4, "mdv" & k$ & "_"
9118 PRINT #3
9120 PRINT #4: GO TO 9104
9122 CLOSE #3
9124 CLOSE #4
9126 END DEFine
9128 DEFine PROCedure reb
9130 GO TO 80
9132 END DEFine
9134 DEFine PROCedure LREB
9136 CLS: PRINT "Select MDV2 documents to RAM5"
9138 WCOPY mdv2_,ram5_
9140 PRINT "More? ": IF INKEY$(-1)=="y": GO TO 9138
9142 GO TO 80
9144 END DEFine
9146 DEFine PROCedure cz
9148 CLS#0
9150 END DEFine
9152 DEFine PROCedure VAL
9154 LOCal y,f$
9156 FORMAT ram8_10
9158 CLS: PRINT "Input formulae? (z to end)"
9160 CLEAR
9162 INPUT f$;
9164 IF f$=="z": END DEFine
9166 OPEN_NEW #4, ram8_work
9168 PRINT #4,"9174 y = "&f$
9170 CLOSE #4
9172 MERGE ram8_work
9174 REMark working space
9176 DELETE ram8_work
9178 PRINT " = ";y
9180 GO TO 9160
9182 END DEFine
9184 DEFine PROCedure COP(n)
9186 WCOPY ram5_,"mdv"&n&"_"
9188 DIR "mdv"&n&"_"
9190 END DEFine
9192 DEFine FuNction root (number,root): RETurn number^(1/root)
9194 DEFine FuNction fact(n): IF n=1: RETurn 1: ELSE RETurn n*fact(n-1)
9196 DEFine PROCedure sample
9198 LOCal ans%
9200 CLS
9202 INPUT "Percent pro or for candidate A? ";a
9204 b=100-a: PRINT
9206 INPUT "Size of sample? ";n
9208 ans%=1.96*SQRT(a*b/n)
9210 PRINT
9212 PRINT "Sampling error is plus or minus ";ans%;" percent (at 95% confidence level)"\\
9214 PRINT "Range pro or for candidate A = "; a-ans%;" to "; a+ans%;" percent"\\
9216 PRINT "Range con or for candidate B = "; b-ans%;" to "; b+ans%;" percent"\\
9218 PRINT "NOTE: Non-sampling errors may exceed the sampling error!"\\
9220 PRINT "Expand ranges plus/minus 2-4% for greater confidence factor."
9222 END DEFine
9224 DEFine PROCedure QL2
9226 wide=254
9228 WINDOW 250,206,254,0: WINDOW #2,wide,206,2,0: WINDOW #0,2*wide,50,254-wide,206
9230 PAPER 0: INK 4: BORDER 1,7,0,3: PAPER #2,0: INK #2,7: BORDER #2,1,7,0,3: PAPER #0,0: INK #0,4
9232 FOR f=0,1,2: CLS#f
9234 END DEFine
9236 DEFine PROCedure sav(drive,name$)
9238 DELETE "mdv"&drive&"_"&name$
9240 SAVE "mdv"&drive&"_"&name$
9242 DIR "mdv"&drive&"_"
9244 END DEFine
9246 DEFine PROCedure QLS
9248 WINDOW#0,512,50,0,206: INK#0,4:PAPER#0,0:WINDOW 256,206,257,0:PAPER 2:INK 7:BORDER 1,255:WINDOW#2,256,206,0,0:PAPER#2,7:INK#2,0:BORDER#2,1,255
9250 CLS#0:CLS:CLS#2
9252 END DEFine
Listing 2
1 REMark QtoRAM1 Loader
2 REMark Courtesy Barry Ashfield in QUANTA
4 RESTORE 14
5 start=RESPR(1024):checksum=0
6 FOR f=start TO start+279
7 READ byte:POKE f,byte
8 checksum=checksum+byte
9 NEXT f
10 IF checksum<>21753: PRINT "error in data": STOP
11 DELETE mdv1_qtoram1
12 SEXEC mdv1_qtoram1,start,280,256
13 PRINT "QtoRAM1 saved ok": STOP
14 DATA 96,14,0,0,0,0,74,251,0,6
15 DATA 81,95,114,97,109,49,112,11,114,255
16 DATA 116,127,78,65,65,250,0,208,112,1
17 DATA 114,255,118,1,78,66,74,128,103,4
18 DATA 96,0,0,172,73,250,0,216,40,136
19 DATA 67,250,0,214,112,71,116,14,118,255
20 DATA 78,67,74,128,103,4,96,0,0,146
21 DATA 67,250,0,194,34,17,112,24,116,255
22 DATA 78,65,74,128,103,4,96,0,0,126
23 DATA 73,250,0,166,40,136,34,72,118,255
24 DATA 32,122,0,160,112,72,75,250,0,158
25 DATA 36,21,78,67,74,128,103,4,96,0
26 DATA 0,94,112,2,78,66,65,250,0,118
27 DATA 112,1,114,255,118,2,78,66,74,128
28 DATA 103,4,96,0,0,70,73,250,0,114
29 DATA 40,136,112,73,75,250,0,110,36,21
30 DATA 118,255,34,122,0,94,78,67,74,128
31 DATA 103,4,96,0,0,40,67,250,0,88
32 DATA 112,70,78,67,74,128,103,4,96,0
33 DATA 0,24,112,2,78,66,32,122,0,60
34 DATA 112,25,78,65,74,57,0,2,128,238
35 DATA 102,248,96,12,32,124,0,1,0,1
36 DATA 52,120,0,204,78,146,114,255,112,5
37 DATA 118,0,78,65,0,10,109,100,118,49
38 DATA 95,113,117,105,108,108,0,10,114,97
39 DATA 109,49,95,113,117,105,108,108,0,0
40 DATA 0,0,0,0,0,0,0,0,0,0
41 DATA 0,0,0,0,0,0,0,0,0,0
Listing 3
100 REMark QDTG Loader
105 REMark Courtesy Derek Wilson in QUANTA
110 C=RESPR(100)
120 FOR i=0 TO 68 STEP 2
130 READ x: POKE_W i+C,x
140 END FOR i
150 SEXEC mdv2_QDTG,C,100,256
1000 DATA 29439,29697,28683,20033,17402
1010 DATA 48,13944,200,20115,12040
1020 DATA 28691,20033,17402,74,-27698
1030 DATA 13944,236,20115,8279,-11314
1040 DATA 13944,208,20115,16961,16962
1050 DATA 30463,28688,20035,24794
1060 DATA 0,7,240,10,168,246