Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!sdd.hp.com!hp-pcd!hpfcso!stroyan From: stroyan@hpfcso.HP.COM (Mike Stroyan) Newsgroups: comp.sys.hp Subject: Re: Traversing a X11 window tree Message-ID: <7370214@hpfcso.HP.COM> Date: 24 Sep 90 17:13:53 GMT References: <120@bwilab3.UUCP> Organization: Hewlett-Packard, Fort Collins, CO, USA Lines: 17 > I am looking for a way to figure out the window id of an xterm or hpterm >window. What I would like to do is XLIB graphics in the hpterm window or >create a child window with the hpterm as its parent window. > >Chris Curtin Both xterm and hpterm set the environment variable WINDOWID to a decimal window id for the top level window of terminal emulator. From experimentation I have noted that hpterm actually creates a child window which it does rendering in. To do Xlib graphics, you will want to create your own child of the $WINDOWID window. That way you won't be fighting with hpterm over repainting for output and expose events. You could map and unmap your child to switch between graphics and text. It is very hard to combine your graphics and hpterm's text and show both in the same area at the same time. It can't really be done well. Mike Stroyan, mike_stroyan@fc.hp.com