[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2451.0. "Getting SHOW DISPLAY info from DCL" by QUARK::LIONEL (Free advice is worth every cent) Thu Mar 15 1990 11:32

How can I, from DCL, get the information that SHOW DISPLAY tells me, without
redirecting its output to a file?  In particular, I'd like the "Node"
information.

The reason is that I have a VT1000 and I want to set the appropriate server
density in DECW$PRIVATE_SERVER_SETUP when initiating a LAT X session on
my workstation.  Yet I don't see how I can find out whether I'm on a local
or remote session.

				Steve
T.RTitleUserPersonal
Name
DateLines
2451.1VANDAL::BAILEYSend money..Lots of Money.. lots and lots of Thu Mar 15 1990 11:5716
     <<< Note 2451.0 by QUARK::LIONEL "Free advice is worth every cent" >>>
                    -< Getting SHOW DISPLAY info from DCL >-

>How can I, from DCL, get the information that SHOW DISPLAY tells me, without
>redirecting its output to a file?  In particular, I'd like the "Node"
>information.


$ SHOW DISPLAY/SYMBOL

$ sho symbol/glo/all

  DECW$DISPLAY_NODE == "VANITY"
  DECW$DISPLAY_SCREEN == "0"
  DECW$DISPLAY_SERVER == "0"
  DECW$DISPLAY_TRANSPORT == "DECNET"
2451.2QUARK::LIONELFree advice is worth every centThu Mar 15 1990 13:235
Wonderful!  I wonder why this isn't documented (at least in HELP)?

I'll QAR that.

			Steve
2451.3STAR::MCLEMANJeff McLeman, VMS DevelopmentThu Mar 15 1990 13:481
Subject to change, maybe??
2451.4If it does change, many people will be very angry....CVG::PETTENGILLmulpThu Mar 15 1990 21:063
I doubt it will be changed.  I suspect that Jake VanNoy's thinking was that
there should be a more elegant method of performing the function, so he placed
it in the `obsolete unpublished features manual' immediately on implementation.
2451.5Once a hacker, always a hacker.XUI::VANNOYJake VanNoyFri Mar 16 1990 10:1710
The development of SET/SHOW DISPLAY was done as a part of the DECwindows
stream, which we tried to keep as independent of the VMS master pack as
possible.  The SET/SHOW .CLD files had to change for SET/SHOW DISPLAY, but
the wall we had to scale to get F$DISPLAY() or some such thing seemed a bit
more than it was worth.  Using LIB$CREATE_SYMBOL (or whatever it is called)
was about 5 minutes work.

It did seem a little underdone, however, and that's why I never pushed to
have it documented.

2451.6QUARK::LIONELFree advice is worth every centFri Mar 16 1990 10:245
Why couldn't there be logical names defined in the job table of the session
manager process, when it gets created?  One would have to think about what
mode they should be defined in (I'd presume exec).

			Steve
2451.7SMAUG::MENDELIn some strange power&#039;s employMon Mar 19 1990 12:4813
        Right.

	The real lack seems to be that there is no way to determine your 
	workstation node from your process, in order to do the 
	SET DISPLAY/CREATE that you MUST do, except manually. 

	When I SET HOST, SYS$REM_NODE and SYS$REM_ID in the process point back
	to the origin node. There's no equivalent for CREATE/TERM to utilize.

	It would be nice if some sort of equivalent logicals were in place.

	Kevin

2451.8define from image ?UNTADA::BRETTFri Jun 08 1990 04:5713
    Along a similiar vein (not worth a topic)  How do I perform a set
    displ/node=blah/trans=foo from an image ?  So that the next image I
    invoke will use it ?  (I have priv's!)  Lib$do_command is out. (and
    spawn)
    
    I thought I could just $crelnm the decw$display logical to be blah::0.0
    or something, but this doesn't seem to work.
    
    Do I have to assign a channel to wsa0: and do some acpcontrol functions
    ? and then define decw$display to be that ?  Is this doc'ed anywhere ?
    
    Many thanks
    /Boy ( a bantam weight decw'er )
2451.9DECWIN::FISHERPrune Juice: A Warrior&#039;s Drink!Fri Jun 08 1990 13:558
Essentially what you have to do is a SYS$ASSIGN to WSA0 (which clones you a new
WSA number).  Then do set_mode qios to it to set the values the way you want
them.  I don't know if it is documented anywhere.

You should be able to pass "mumble::0.0" as an argument to XOpenDisplay without
having to do the crelnm as well.

Burns
2451.10Ok then- How do you GET the info in a running prog?LAIDBK::ELLISONThat is truly a wetbrain concept.Wed Jun 20 1990 18:1217
    
    I guess this belong's here-
    
    My customer needs to be able to do the reverse, that is GET the node,
    transport, display, and screen information in their running program.
    
    I'm guessing that it is a sense mode qio to the wsa device that
    DECW$DISPLAY points at, but I haven't been able to track down the
    various bits and pieces...
    
    If someone can point me in the right direction I'd really appreciate it.
    
    Alternately, if someone has some stripped code that would do it, that
    would be ideal.
    
    	Jan
    	dtn 533-7787
2451.11Not necessarily supported, but...DEVO::FISHERPrune Juice: A Warrior&#039;s Drink!Thu Jun 21 1990 13:3017
status = sys$qiow (0, chan, IO$_SENSEMODE|IO$M_WS_DISPLAY, &iosb, 0, 0,
                   itemval.dsc$a_pointer,
                   itemval.dsc$w_length,
                   item, 0, 0, 0);

Where itemval is a structure of dsc$descriptor (I.e. a string descriptor) and
item is one of:

DECW$C_WS_DSP_NODE
DECW$C_WS_DSP_TRANSPORT
DECW$C_WS_DSP_SERVER,
DECW$C_WS_DSP_SCREEN,

#define DECW$C_WS_DSP_NODE 1
#define DECW$C_WS_DSP_TRANSPORT 2
#define DECW$C_WS_DSP_SERVER 3
#define DECW$C_WS_DSP_SCREEN 4
2451.12Great, But what is value of IO$M_WS_DISPLAYLAIDBK::ELLISONThat is truly a wetbrain concept.Thu Jun 21 1990 16:5611
    
    Thanks Burns-	(& Vince)
    
    Only one question: what is the value of IO$M_WS_DISPLAY ?
    
    I checked in iodef.h & iodef.mar, but there doesn't seem to be a value
    for the symbol. Did I miss something?
    
    
    	Jan 
    	dtn 533-7787
2451.13Sorry...I missed that oneDECWIN::FISHERPrune Juice: A Warrior&#039;s Drink!Fri Jun 22 1990 13:192
#define IO$M_WS_DISPLAY 64
 
2451.14PRAVDA::JACKSONNiche, or be nichedFri Jun 22 1990 16:478
RE: .8


setting display to BLAH::0.0 won't work very well.  BLAH is a MicroVAX
Config 5 and doesn't ahve any DECwindows displays connected to it.


-bill