Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hoffman@xdelta.enet.dec.com (Stephen Hoffman)
Subject: Re: Changing A Display Device
Date: 1995/07/28	[thread overview]
Message-ID: <3vb7ts$lu4@nntpd.lkg.dec.com> (raw)
In-Reply-To: 1995Jul26.163151.23496@hrbicf


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




      reply	other threads:[~1995-07-28  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-26  4:00 Changing A Display Device gorman findley
1995-07-28  4:00 ` Stephen Hoffman [this message]
read-only archive

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