STATUS

by Dilwyn Jones

This program simply maintains an on-screen display of machine status,
displaying such information as the DATA_USE, PROG_USE and DEST_USE
settings, along with a display of version numbers of S*BASIC, operating
system, pointer interface and window manager, free memory, total
memory, machine, processor, screen address, system variables address,
screen mode, display width and height, GD2 colour drivers presence and
of course the current date and time.

None of these is too significant in themselves, but it forms a useful
little diagnostic for checking machine type and versions to save having
to remember BASIC commands to check these settings.

If pointer environment is present, you'll get a pointer driven version,
if not, you'll get a non-pointer display. In the case of the pointered
version, you get a simple display with the usual PE suspect loose items
of Move, Button sleep, refresh and ESC along the top.

In the non-pointer version, press ESC to quit or CTRL F4 to move the
display around the screen to where it is least in the way. In the
pointered version, click on the [X] icon or press ESC to quit.

The main display lists the information as follows, this is pretty well
the same in both pointer and non-pointer versions.

===================================================
DATA$  :win1_
PROG$  :win1_exec_
DEST$  :par
FREE   :1024000           RAM TOP  :1.661531E7
SCREEN :1.077552E6        SYS VARS :163840
MACHINE:QPC               PROCESSOR:68010
BASIC  :HBA  O.S. :2e99   PTR      :1.73  WMAN:1.54
MODE   :0    WIDTH:640    HEIGHT   :480   GD2 :Yes
CLOCK  :2003 Feb 28 22:52:49
===================================================

If there is no pointer environment present, the fields for PTR and WMAN
will simply be blank.

A slight problem might occur with the pointered version on systems
running the pointer environment with window manager (wman) versions
older than 1.52. This is because the program uses the Easyptr extension
MCALLT, which does not work on older window managers. In this case the
program reverts to using MCALL, but display update may not happen
automatically as settings such as clock or data/prog defaults are
changed. In this case, click on the refresh (lightning symbol) icon to
force an update.

The non-pointered version ideally needs to have a flashing cursor to
work properly. If it simply shows a steady red cursor instead of
flashing, simply CTRL C back into the program.

Status was written in SBASIC using the Easyptr system from Albin
Hessler. Status includes version 2.01 of my display code extensions
from QL Today. The program was compiled with QLiberator. There are two
versions of Status. The _rtm version includes compiler runtimes linked
to the program, but is about 10 kilobytes longer than the _obj version
which is intended for users who already have QLiberator runtimes (the
file qlib_run) installed on their system. Status requires Toolkit 2 to
be present and active.

Version 1.00 (27/2/03) - first release version
Version 1.01 (10/9/03) - colour scheme altered slightly to match
                         Launchpad.


