The HELPER program is a set of useful toolkit-like functions presented in a menu format. Most of the functions deal with file handling. It will work with all configurations of QLs, expanded or unexpanded, toolkit or no toolkit, floppies or no floppies. It carries out its functions with single key presses where possible, so it is very quick and easy to use. It provides multiple windows of directories and menus to keep the user visually informed on what is happening. This makes it much easier for the beginning QL user to develop a grasp of file usage in the QL environment. Although the PSION programs (ARCHIVE,QUILL,ABACUS,EASEL) have file maintenance commands, they are cumbersome to use and HELPER can be run before or after them to clean up directories or make backups.
To Run :
type : ‘lrun ()helper’ where ()=device holding HELPER
You are presented the HELPER Menu. Experiment a little and get a feel for how the commands are presented and carried out. The functions that make serious changes are deleting files and formatting cartriges or floppies. You can play with the other functions without harm. Stop the program and return to QDOS (option 8) when through.
HELPER Menu Options :
1. Directory of a device with file copy,delete,view options. The directory is constantly displayed while the functions are being carried out.
2. Copy medium either all(clone) or selective. The source and target mediums are both displayed. Select ‘all copy’ to copy all files from source to target(clone source). Select ‘selective copy’ to pick certain files to copy from source to target. You are then prompted about each file with a ‘[y/n/a/q]’, which means press ‘y’ to copy, ‘n’ not to, ‘a’ to begin ‘all copy’, ‘q’ to quit copy.
3. Print a file to a printer attached to ser1. All text in a file will be faithfully printed. All nontext will print as ‘‘. It works fine for listing SUPRBASIC programs and many other files, although slower than normal because of the character translation. Quill _doc files have all the text printed plus a lot of ‘‘s and the form is not the same as printing from Quill. It is handy,nevertheless, to see what is in any file and the print can be aborted if desired.
HELPER Documentation page 2
4. Set time and date. You will notice the date and time and the elapsed time HELPER has been running in the lower right of the HELPER menu screen. When you first start your QL (cold boot) the date and time are incorrect unless you have a battery clock. Once you set it with this option it will remain correct even if the QL is reset (warm boot).
5. Load and run a program from a specified device. You can start one of the PSION programs from its boot program or any named SUPERBASIC program by naming its file name.
6. Open for your own additions.
7. Also open.
8. Quit HELPER and set windows. Either have the normal <F1> windows or have full width #1 and #2 overlapping windows after leaving HELPER. After returning to QDOS type : ‘run<ENTER>’ or ‘helper<ENTER>’ to restart HELPER. To clear HELPER from the QL memory type : ‘new<ENTER>’.
9. Hints about HELPER. Very briefly describes the program.
0. Format a medium 1 to 9 times. All new cartridges should be formatted 5 times. Floppies need only 1 format. If you want to reuse an old cartridge or floppy you can reformat it, as long as you don’t mind losing whatever is on it. You are forced to give a name for the formatted medium. Use a name up to 8 characters that describes what the medium will be used for. If the sector count varries a lot when a cartridge is formatted several times, reformat it until you get a smaller count and be wary of it.
Hints :
The QL has a WHEN ERROR routine to trap errors but in the standard QL it is flawed. In order to keep this program simple and universal, I avoided trapping errors. I am planning a more complex version of this program that will trap errors that will be available later. There is a fair bit of input checking to prevent errors happening but not every one can be prevented. Trying to copy a nonexistent file somewhere will stop the program or trying to copy to a file that already exisits will also. If the program stops you will be in QDOS and you should note the cause of the error and restart the program by typing : ‘run<ENTER>’ or ‘helper<ENTER>’s. The difference being that the elapsed time (bottom right of HELPER menu screen) is reset to 0 when you ‘run’. You should always ‘run’ or ‘lrun’ the first time.
HELPER Documentation page 3
A device is a piece of hardware that reads and writes information to a mass storage medium. So microdrive 1 (mdv1_) is a device that holds a microdrive cartridge (a storage medium). The QL comes with mdv1_ and mdv2_ built in. You can add 2 floppies (flp1_ and flp2_) and some toolkits and software allow you to use computer memory (RAM) as a simulated device (ram1_ and ram2_, etc.). All devices except RAM devices retain their information when power is turned off. The mediums that go in devices must also be formatted before first use. If Ram is formatted it is called static (fixed size) and if it is not it is called dynamic (its size grows with need).
All information stored on a medium is done so as a file. A file is the collection of your information in a structured form. A file is accessed by specifying its name. The QL is very flexible about names and the ‘_’ (underscore) is used as a handy divider for parts of names of a file. In many computer systems the ‘.’ (period) is used in exactly the same way. A QUILL file would be totally identified as : mdv2_letter_doc. Where ‘mdv2_’ gives the device location, ‘letter’ is the main name, and ‘_doc’ is QUILL’s extension for easy identification.
The PSION programs are not as flexible about the names of files they allow. Their file names can have a main body of only 8 characters and each usage has a specific extension. ARCHIVE uses ‘_dbf’ for database files. QUILL uses ‘_doc’ for documents. ABACUS uses ‘_aba’ for spreadsheets. Others are ‘_exp’ and ‘_lis’. That means that when you save(create) or load(open,look) a file with one of these programs they will assume those extensions at the end of the main part of the file name.
When a directory is shown in a window, the top line is the name given to the medium at the time of its formatting and the second line has 2 numbers separated by a ‘/’. The first number is the total sectors still available for use (not used up by files) and the second number is the total sectors on the medium. A sector is 1/2 k. As the sectors available approaches 0, you need to use care. You may try to save a file and there will not be enough room. You will get a ‘drive full’ message from QDOS or in the PSION programs it is a more cryptic ‘incomplete i/o transfer’. If you are short of room on a medium you will have to delete some files on the medium to make room or use a different medium with enough room.
If you want to copy a file with a new name (rename) you have to use option 1 (Directory) and type the new name in when requested. If the name is to be the same you can also use option 1 and just <ENTER> when the name is prompted for or you can use option 2 (Copy) and choose selective copy and just press ‘y’ when prompted about copying that file.
HELPER Documentation page 4
If you want to see what is in a file you can use option 1 (Directory) and view it. It will be scrolled on the screen for you. Press the <CTRL><F5> keys down to pause it and just the <F5> key to restart it. If you are not using a toolkit you can end the view by pressing <CTRL><space bar> while it is scrolling. If you have it paused and do it you will stop the program and must retart by typing ‘helper<ENTER>’. Othewise you will have to wait until the scrolling is done. It can take a while for long files.
The code is straight SUPERBASIC. I indented the multiline IF statements for easier reading. The single line ‘IF’ statements don’t require and ‘ENDIF’ but I prefer using them for easier program reading. You will should find it easy to add your own customized options to the program. You may want to borrow some of the procedures to use for your own purposes.
Numbers 6 & 7 are left unused in the menu. One nice addition is to make HELPER your boot program for Quill so you can do file maintenance when you start up and have option 6 be starting quill. You can call the Quill boot program ‘bootq’ and have option 6 ‘lrun’ it. Alter the Quill boot program so that it restarts HELPER (now called boot) when you quit Quill so you can do file maintenance as you finish up.
If you have a toolkit activated while using HELPER, it may control the directory windows by stoping them when the window fills until you press a key (<F5> is the best key to press). That is why you often see the message ‘Press <F5> if paused’. If drives are running then things are probably not ‘paused’. If you don’t have a toolkit, you can ignore the message.
I hope you find this program useful. If you find any ‘bugs’ or think of good additions let me know.
Bill Cable
Wood & Wind Computing
RR2 Box 92
Cornish, NH 03745
603 675 2218