QL Corner: DJToolkit

Author(s): Bob Gilder
Publication: LISTing Newsletter
Date: November 1993
Pages: 4

DJTOOLKIT REVIEW

Author: Norman Dunbar

Reviewed by Bob Gilder

I became interested in the DJToolkit after browsing through the Dilwyn Jones Computing ads in the last issue of IQLR. It was as though the author of this software had me in mind – the toolkit was totally compatible with the QLiberator compiler. Turbo and Supercharge can also benefit from the DJToolkit, with the exception of one command, DEV_NAME. This function tends to modify its parameters as well as returning a string.

The DJToolkit is very easy to use , provides 44 useful extensions and is extremely powerful. The Toolkit is less than 4 Kbytes long. There are several versions of the Toolkit: DJToolkit_BIN which is booted into the reserved memory area, DJToolkit_rom is a file that can be burned onto a 27128, 16 K eprom and DJToolkit_rpm for those users who may wish to add their own header with Liberation Software’s Resident Program Manager software (RPM). A lot of thought went into this software package to benefit a wide variety of the software user’s requirements.

A 20 page manual accompanies the disk, providing a brief description of the new commands as well as detailed description for each of the new functions and procedures. Quite a few SuperBASIC listings are provided in the detailed section of the manual, that can be used as demonstrations for some of the toolkit extensions.

Updates_doc is an extension of the DJToolkit Manual. This document provides latest updates that were added to the toolkit, but were added too late for insertion into the manual.

The Toolkit areas covered include screen handling, file handling, file and date extensions, environment functions (free memory, pointer environment detection, check if given SuperBASIC extensions are present, check if level 2 device drivers are present), common heap extensions, font handling extensions, file headers, memory block move and search functions and general programming aids such as system variable address function, screen base address function, display width function for dealing with new graphics hardware and so on.

Outlined below is a brief description of the new procedures and functions as outlined in the manual:

ABS_POSITION     Set file position absolute.
BYTES_FREE       How much free memory is left, in bytes.
CHECK            Test to see if machine code PROC/FN exists.
DEV_NAME         Scan the Directory Device list, returning next name.
DISPLAY_WIDTH    How many bytes used to hold one screen line?
DJTK_VER$        Return the toolkit version number as a string.
FETCH_BYTES      Get some bytes from a channel.
FILE_BACKUP      Get some backup date for a specific file.
FILE_DATASPACE   Get the file's dataspace.
FILE_LENGTH      Get the file's length.
FILE_POSITION    Get the current position in the file.
FILE_TYPE        Get the file's type.
FILE_UPDATE      Get the file's update date.
FLUSH_CHANNEL    Flush the data on a channel to a device.
GET_BYTE         Fetch one byte from a channel.
GET_FLOAT        Fetch 6 bytes from a channel.
GET_LONG         Fetch 4 bytes from a channel.
GET_STRING       Fetch a QDOS string from a channel.
GET_WORD         Fetch 2 bytes from a channel.
KBYTES_FREE      How much free memory is left in Kbytes.
LEVEL2           Test whether level 2 drivers are present on a channel.
MOVE_MEM         Move memory around.

There are two very important files included on on the disk; DEMOS_bas and DEMOS_doc. DEMOS_bas is a 37K SuperBASIC file chocked full of useful procedures and functions using a variety of the DJToolkit extensions. DEMOS_doc supports it’s SuperBASIC counterpart as it provides detailed instructions for use of each procedure and function in the order that they are programmed.

For owners of the QLOAD utility, the file DEMOS_sav can be loaded with the QLOAD command.

I would strongly advise the new user to print out the DEMOS_doc file for use with DEMOS_bas or use a multi-tasking front end, activate Quill, load in the DEMOS_doc file, CTRL-C into basic and load in the DEMOS _bas file. List the file and CTRL-C back and forth for instructions and operation.

Incidentally, all of those procedures and functions supplied on DEMOS_bas can be extracted and used within other programs. I extracted one 8-line procedure called ‘AUTO_REPEAT’ which uses the SYSTEM_VARIABLES function. I have an external Schoen Keyboard interface which suffers from keyboard ‘roll-over’ or repeat characters. Several different remedies have been tried throughout the years with out a correction for this problem. AUTO_REPEAT did the job! For me – the DJToolkit was well worth the purchase price of £10 for correcting this nagging problem.

There are many more useful routines within DEMOS_bas. Some of my favorites are: SLIDE_SHOW for viewing a number of screen dumps, FILE_DETAILS and DRIVE_DETAILS, MAKE_DIRECTORY for Level2 sub-directories, FIND_FILE lists the filename of files containing a user input string on the screen and a short extract of the file on either side of the string that was found. I’m sure that the many other routines nested in this program that would suit every QL user.

Four fonts are provided for use with the USE_FONT procedure. This procedure allows the user to change the standard QL character set within any channel. Fonts from Digital Precision’s Lightning and Dilwyn Jones Computing Page Designer can also be loaded and used.

The DJToolkit is compatible with Toolkit2. Activating TK2_ext and typing ‘EXTRAS’ will reveal the DJToolkit commands nested within the other functions and procedures.

The author of DJToolkit allows any legal owner of this toolkit to include it in QLiberator compiled programs even if you intend to sell commercially or give it away as public domain software or as shareware, by linking it to the program.

The software package is available on disk or microdrive cartridge and will operate on an unexpanded QL.

The author, Norman Dumbar and Dilwyn Jones have made this software package ‘idiot-proof’, it is that easy to use. The whole software package; the Toolkit and its supporting documentation and demo program and SuperBASIC listings make the use of DJToolkit very easy, even for a novice QL user. Most software manufacturers seem to prepare their supporting documentation for users at their own level, forgetting that, perhaps, there are QL users out there that require simple step-by-step instructions just to get a ‘grip’ on it. It’s obvious that the team of Norman Dumbar and Dilwyn Jones really understand this problem empathizing with the vast majority of software users.

The DJToolkit is powerful, easy to get going and a steal at £10.00. Buy it! You won’t regret this purchase.

The DJToolkit is available from: Dilwyn Jones Computing, 41 BRO EMRYS, TAL-Y-BONT, BANGOR, GWYNEDD, LL57 3YT, Great Britain Tel: 0284-354023