Timothy Swenson writes:

> Isn't there a way to check to see if a Keyword is available?  In DJTK
there is
> the CHECK command, that looks to see if a PROC/FN is available.  I'm
guessing
> this will work for the GD2 commands, like PALETTE_QL.  Have not tried it
> myself, but it's worth a look.  Get DJTK from Dilwyn's page on the Other
> Sofware page.

Its probably the surest way, though somewhat gawky, dont you find? The Thing
list is probably the one to use in these situations, but then there doesnt
appear to be a GD2 Thing or anything related. An alternative might be to
read the mode, though that is a rather indirect way of doing things, and not
necessarily unambiguous with regard to the presence of the keyword in
question. The keyword is directly related to certain capabilities of the OS,
and it is those capabilities that I really want to test for. Are there no
new keys in the sys vars to indicate the presence of GD2, like in the
display mask (sys_mdsp) ? (Apparently not.)

Just tested: Called  iow.papp  on a pre-colour SMSQ/E (this is the key for
the first of the new traps). It didnt return NI, as might be expected, but
BP (or is this a genuine BP error from some undocumented trrap?). Still, a
utility or keyword to test for this might be a possible solution. Anyone
know anything to the contrary?

Later:

Yes, I do! I wrote a SB keyword as described above. It worked as expected in
various pre-colour versions of SMSQ/E, and on 2.98 in hi-colour mode - but
not in 2.98 QL-colour mode - there the trap seems to work - ie no errors -
although it isnt implemented! :((  Do we call this a "feature" or what?

Other suggestions?

Per

Reply via email to