From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,cc24b4ec81080f62 X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.com (Stephen Hoffman) Subject: Re: Changing A Display Device Date: 1995/07/28 Message-ID: <3vb7ts$lu4@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 107030292 distribution: world references: <1995Jul26.163151.23496@hrbicf> organization: Digital Equipment Corp keywords: Display OpenVMS reply-to: hoffman@xdelta.enet.dec.com (Stephen Hoffman) newsgroups: comp.sys.dec In article <1995Jul26.163151.23496@hrbicf>, gnf@icf.hrb.com (gorman findley) writes: :We have an application which must start another process/task using the :lib$spawn command. The new process/task that is started needs to have its :display routed to an X-device, not the one associated with the parent process. :This will allow us to have both processes' displays active in unique windows. :We are using C on a Alpha 2100 running OpenVMS 6.1. The device underlying the DECwindows display selection process is the WSAn: workstation pseudo-device. One can create and pass most any WSAu: device to the application, either by default via the DECW$DEVICE logical name, or by explicitly specifying the device name. Here is an example: $ savews = "''f$trnlnm(""DECW$DISPLAY"")'" $ set disp/cre/no=node/screen=1 $ spawn/nowait/outp='f$trnlnm("DECW$DISPLAY")'/nological/nolog mcr decw$clock $ set disp/cre/no=node/screen=0 $ spawn/nowait/outp='f$trnlnm("DECW$DISPLAY")'/nological/nolog mcr decw$clock $ set disp 'savews' The above example brings up a DECwindows clock (using the DECnet transport) on node::0.1 and on node::0.0 -- a clock is displayed on the first two screens of a multi-head X display. The /NOLOGICAL qualifier prevents the DECW$DISPLAY logical name (and any other logical names) from propogating into the new subprocess. When the above sequence of commands has completed, the process's default display is restored to the original setting. There are undocumented IO$_SETMODE and IO$_SENSEMODE $qio function codes that can be used to read and write the contents of the WSAn: devices. (These have been posted before.) You can also create a new workstation pseudo-device by issuing an sys$assign specifying _WSA0: And the SET DISPLAY command is fully documented... :Please respond via E-Mail. Ask here, get an answer here... ------------------------------ Opinionative ------------------------------- Stephen Hoffman OpenVMS Engineering hoffman@xdelta.enet.dec.com ---------------------------------------------------------------------------