[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

2593.0. "How to do XOpenDisplay to a VT1000" by KAL::BJERKEHOLT (Bo Bjerkeholt, TPSG, SWAS, @GOO) Tue Apr 10 1990 11:14


	How do I open my windows on a VT1000 from a VMS machine without doing
	   $ set display.

	I have a detached process that gets a mailbox message telling on which
	node to display. 
	Then I do a simple XOpenDisplay(node) which works fine for DECnet or
	TCP transport but I don't see how LAT can be specified

	Regards
		
T.RTitleUserPersonal
Name
DateLines
2593.1We had more transports than symbol conventions; that's why we made the ws deviceDECWIN::FISHERPrune Juice: A Warrior's Drink!Tue Apr 10 1990 13:0310
It can't.  You need to create a display device.  Ditto for LOCAL, btw.

Is it that you need to find it from a program without benefit of DCL?  How
is the other program getting the wkst name that it passes you?  Perhaps there
is a way for IT to get/create the WS device?  The WS device gets created
automatically in a lot of places:  For example, if you log in the session mgr,
you will have a WS in DECW$DISPLAY.  I think the DW Terminal s/w should also
be donig it if you logged in from the terminal.

Burns
2593.2More on this...STKHLM::DSUNDSTROMDan Sundstr�m ACT StockholmTue Apr 10 1990 15:4623
    What we have is a multithreaded program that runs detached. It gets via
    a mailbox a string in the form "nodexx::0.0" and just makes an
    XOpenDisplay(...) on the string. The program that writes into the
    mailbox has a defined displaydevice(set display/create/node=nodexx::0)
    and just makes an XOpenDisplay() and a DisplayString(dpy) -> mailbox.
    
    When you do a set display/create/node=LAT_08002bxxyyzz/trans=lat and
    puts that into the mailbox with DisplayString it givs you 
    LAT_08002bxxyyzz::0.0 as the string. XOpenDisplay on that does not do
    what I want it to. Two possibilities;
    
    1 The way in .1: do a getenv on decw$display to get the wsa-device and
    pass that through the mailbox. This gives another problem; If you are
    not sure if the writing process is there when you read the mailbox and
    try to use the WSA-device it might not exist, unless you create it with
    /exec but then it will never disapear... Hmmm Any thoughts ??
    
    2 From the reading program you, when you see a LAT..., create the
    device with lat transport... I dont know how to do that, does anyone
    have any suggestions ??
    
    Thanks /Dan Sundstr�m ACT Stockholm.
                  
2593.3Can WS device be used instead ?KAL::BJERKEHOLTBo Bjerkeholt, TPSG, SWAS, @GOOTue Apr 10 1990 16:0013
    
    	We have a login program that is started from a command file who
    	do set display/cre....   .The login program picks up the node name
    	after XOpenDisplay("") with a DisplayString(dpy) . After that it
    	sends to the other application in a mailbox which works fine for
    	DECnet transports.
    	The application that receives the mailbox is multithreaded and
    	handles several displays ,thats why it wont use DCL and set
    	display.
    	Can the WS device be used to open the display instead ?
    
    	regards,
    		Bo
2593.4STAR::ORGOVANVince OrgovanTue Apr 10 1990 19:383
    RE: .3 Can WS device be used instead ?
    
    Yes, XOpenDisplay accepts WS devices.
2593.5DECWIN::FISHERPrune Juice: A Warrior's Drink!Wed Apr 11 1990 13:489
Aha.  Yes, XDisplayString (actually XOpenDisplay which stores the string
for XDisplayString in the first place) is broken.  You can't always use it
to open another display, which is what it is there for.  This is fixed in
VMS V5.4 (I think *not* in T5.4, though).

It sounds like you are using the right technique.  If you can possibly hold
off for V5.4, don't make any hacks to work around the problem!

Burns
2593.6Don't try to parse XDisplayString!DECWIN::FISHERPrune Juice: A Warrior's Drink!Wed Apr 11 1990 13:503
re .-1:  Caution all ye who try to parse the string coming from XDisplayString!

Burns