Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!csd4.milw.wisc.edu!leah!albanycs!crdgw1!uunet!zephyr!tektronix!sequent!mntgfx!cmorgan From: cmorgan@mentor.com (Clark Morgan @ APD x4813) Newsgroups: comp.sys.apollo Subject: vt100 <-> DM help needed Message-ID: <1989Jun16.212928.11933@mentor.com> Date: 16 Jun 89 21:29:28 GMT Distribution: na Organization: Mentor Graphics Corporation, Beaverton Oregon Lines: 29 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