Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Changing A Display Device
@ 1995-07-26  4:00 gorman findley
  1995-07-28  4:00 ` Stephen Hoffman
  0 siblings, 1 reply; 2+ messages in thread
From: gorman findley @ 1995-07-26  4:00 UTC (permalink / raw)


Question for Anyone,

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.

Can this be done?

We are using C on a Alpha 2100 running OpenVMS 6.1.

Any responses will be greatly appreciated.

Please respond via E-Mail.

Gorman Findley
HRB Systems 
State College PA
800-827-4311 x3778
814-234-7720 fax
gnf@icf.hrb.com - email



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Changing A Display Device
  1995-07-26  4:00 Changing A Display Device gorman findley
@ 1995-07-28  4:00 ` Stephen Hoffman
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hoffman @ 1995-07-28  4:00 UTC (permalink / raw)



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
  ---------------------------------------------------------------------------




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-07-28  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-07-26  4:00 Changing A Display Device gorman findley
1995-07-28  4:00 ` Stephen Hoffman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox