MANAGER%UMDHEP.BITNET@WISCVM.ARPA (09/07/85)
The documentation for the SMG routines once again appears
to be inadequate. I tried to follow their directions for
using SMG$GET_TERM_DATA, with little success. The manual
called for using symbols SMG$K_<capability field desired>,
but these were not defined and I could find them nowhere
in any of the C include files. The answer is that they are
defined in $SMGTRMPTR in SYS$LIBRARY:FORSYSDEF.TLB. There
was no SMGTRMPTR.H, so I modified the FORTRAN version for
C. If anybody wants a copy of SMGTRMPTR.H (it's not too
difficult to do your own from the FORTRAN version), I'm
willing to take requests.
These definitions are useful for determining the various
capabilities of a given terminal. If you want to enable
reverse video, I don't think you can do it from Curses (I
couldn't), but you can get the info to do it from SMG (at
least, you SHOULD be able to). I haven't tried SMG$GET_TERM_DATA
yet, so anyone who has successfully or unsuccessfully used
it might drop me a line.
Thanks,
Todd Aven