Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!amara.UUCP!des%orenda From: des%orenda@amara.UUCP (Dave Steinhoff) Newsgroups: comp.windows.news Subject: Re: Using PSH to produce output in a window Message-ID: <8903031334.AA00973@orenda.amara.uucp> Date: 3 Mar 89 22:22:38 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 35 I'm not exactly sure what would suit you best, but it is straight- forward to run psh and open a window into which subsequent graphics operations are directed. For example, % psh executive /win framebuffer /new DefaultWindow send def /reshapefromuser win send {/FrameLabel (* PSH Output Window *) def /PaintClient {1 fillcanvas} def /IconImage /door def } win send /map win send {ClientCanvas} win send setcanvas .5 fillcanvas ...would create a window with a white background and then fill the background with a .5 grayscale pattern (on a b/w box). All but the last line could be saved in a file to shorten the preamble: % psh executive (.../psh-win) run .5 fillcanvas ...to produce the same effect. I apologize if you were looking for a different sort of solution. Let me know how it goes. Dave. Dave Steinhoff (313)973-1300 ...uunet!amara!des Applied Dynamics International des@amara.UUCP 3800 Stone School Rd, Ann Arbor, Mi 48108