About TOOLKIT II

Author(s): Peter Hale
Publication: Update Magazine
Pub Details: Update October 1988
Date: October 1988
Pages: 28

The Boston Computer Society
One Center Plaza
Boston, MA 02108

BOSTON COMPUTER SOCIETY
Newsletter of the BoSTUG (Sinclair/Timex User Group)
Vol 7 No 5

The Sinclair/Timex Newsletter is the official publication of the Sinclair/Timex User Group of the Boston Computer Society (BoSTUG).

Annual membership for New England residents is $35.00 (otherwise $28.00) per year. Subscription to BCS/Update and one other newsletter is included without cost.

The newsletter has an exchange policy with Sinclair/Timex User groups willing to reciprocate. Please forward exchange issues to the editor pro tem, Peter Hale, P.O. Box 8763, Boston, MA 02114.

Unless copywritten by the author, articles are in the public domain. Attribution is requested.

BoSTUG is a sub group of the Boston Computer Society. BoSTUG produces this nice 18 page newsletter, which is heavily in support of the Sinclair QL and moderately in support of the TS-2068. “BCS/UPDATE” is a large Magazine published by BCS for its members and is not to be confused with UPDATE Magazine, our name deriving from “UPDATE COMPUTER SYSTEMS”, computer consultants. Two articles from the BoSTUG Newsletter are re-printed to sample the quality and depth of coverage in this nice newsletter. ed.

REPRINT FROM: BoSTUG Sinclair/Timex Newsletter, September/October 1988

Are there any QL owners who if they don’t have TK2, have not been strongly advised to get it?

Anyone who has keystroked COPY mdv2_fred to mdv1_fred a zillion times to backup media finds WCOPY worth the price alone.

Certainly, the Toolkit II manual is a forbidding document. There is no tutorial; just a list of keyword extensions with limited and sometimes incomplete directions on their use.

There is not even a clue as to where to get your feet wet, so a sampling of easy and immediately useful keywords is offered here.

Toolkit II extensions that are easy and that you will enjoy are: ALARM, CLOCK, DLIST, EX, EXTRAS, EW, FREE_MEM, RENAME, SPL, SPLF, STAT, TK2_EXT, VIEW, WCOPY, WDIR, WMON, WREN, WTV, and WSTAT.

All can be explored from direct mode and you can’t get in (much) trouble (except for difficulty understanding the manual).

But a lot of people are missing out on three excellent features incorporated in Toolkit II: ED, ALTKEY and last line recall.

Last line recall <ALT><ENTER> is usually useful in direct mode in SuperBASIC. It recalls all characters since the last ENTER. Done several times in sequence, it recalls several lines at a time. Once recalled, lines can be edited or reexecuted. It also works from Psion programs, as a quick and dirty copy, up to Psion’s 22 character buffer limit.

ALTKEY is worth exploring. It is buried in the back of the manual in Section 21 and little is said about it. Essentially it permits writing macros. The syntax is ALTKEY ‘x’,’….’ where x is any one of the QL’s character set. In the example, x is lower case. Everything after ‘x’, and within the quotes happens when the combination <ALT><x> is pressed. If <ENTER> is desired for executing, the ALTKEY definition can end with ,” (comma and two single quotes), which is <ENTER>.

How to use ALTKEY is not conceptually easy. One use is ALTKEY ‘1’, CHR$(240)&’lflp1_setup’,”. This line is incorporated in my Quill boot. The same disk also has the file ‘setup_doc’ on it.

Setup_doc is my style sheet for correspondence. It has my return address, the date and salutation position and no footer. I don’t reorganize Quill’s default page each time I write a letter; I press <ALT><1>.

Programmers assign ALTKEYs to oft used keywords (without an ENTER) to emulate single-stroke keywords popular in earlier Sinclair’s. A boot with a batch of user defined ALTKEYs and a final line NEW is run at the start of programming. NEW clears SuperBASIC memory (but not the ALTKEY definitions.)

Finally, there is ED that invokes a full screen SuperBASIC editor. The cursor keys move the cursor over the full screen. They can be combined with ALT and SHIFT for special effects. It is easier to edit existing programs with Overwriting (SHIFT F4, as in Quill).

SuperBASIC programs often have a number of duplicate or near duplicate lines. Editing a line number replicates the line at a new position and retains the old line. If slight modification is required, overwriting speeds any needed changes.

For fun, slip in ED as a line anywhere in a SuperBASIC program. Run it. Predictably, when the program reaches ED, it halts and goes into full screen edit mode. Now press <ESC>. What happens?

-Peter Hale