cmorgan@mentor.com (Clark Morgan @ APD x4813) (06/17/89)
I have a CURSES application (vt100-based, by definition) in
which I want to invoke the DM to edit/read a file. I want
the DM pad to exactly overlay the window in which the CURSES
application is executing.
Sounds simple, right? Just call the various pad_$ routines,
find the current application's window coordinates (in pixels)
and feed them to pad_$create_window.... Wrong.
None of the pad_$inq routines (or gpr_$inq routines, for that
matter) can be called from a vt100 environment. These routines all
return the following error:
stream is not a pad
(I tried inquiring via stdout, stdin, stderr).
I'm really stumped. How do I determine the pixel coordinates
of the window (pad) in which a CURSES application is executing?
There has to be some way to do this.
If it matters, I'm using SR10.1.1.2 .
Help....
--
Clark O. Morgan -- Mentor Graphics Corp.
cmorgan@mntgfx.mentor.com ...!tektronix!sequent!mntgfx!cmorgan