The display_cde extensions originally written for QL Today have now been updated to add five new BASIC functions:
GD2 returns 1 if "colour drivers" present, 0 if not PTR_ENV returns 1 if pointer interface present, 0 if not WIN_MAN returns 1 if window manager available, 0 if not PTRVER$ returns pointer interface version number OS_VER$ returns the QDOS or SMSQ operating system numbers These new functions, written with much appreciated advice from Marcel Kilgus, were written to let programs extract information from the system to see if required facilities are likely to be present. For example, a program which needs colour drivers can test if high colour drivers are there, and if not, stop gracefully with a simple command like: IF GD2(#0)=0 THEN PRINT"Sorry, I need GD2!":STOP While SBASIC already provides facilities to extract most of this information from the system, these extensions work in both SuperBASIC and SBASIC and can be used with Turbo and QLiberator compiled programs too. They are freeware and may be used in PD or commercial programs if you wish. I have left the old version available for now, in case someone finds bugs in the new version! The new versions are available in a file called Display2.zip available for download from the My Freeware page on my website: http://homepages.tesco.net/dilwyn.jones/software/freeware/freeware.htm l -- Dilwyn Jones
