[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

3469.0. "CREATE/TERM for multiple open/closes" by TROA09::DLOTEN (Semper ubi sub ubi.) Mon Oct 15 1990 22:56

    
    Please excuse this if it is obvious (shame on me).
    
    I want to create a terminal /detach/noprocess and then write to it from
    other command procedures like ...
    
    $! COM1.COM
    $ create /terminal -
    	/detach -
    	/noprocess -
    	/define_logical=MY_TERM
    
    $! COM2.COM
    $ open /write outdev MY_TERM
    $ write outdev "Some really important stuff"
    $ close outdev
    
    When COM2 closes 'outdev' the window goes away.  I don't want it to!!
    
    Any ideas?  Thanks!
    
    -doug
T.RTitleUserPersonal
Name
DateLines
3469.1This might help...MINIM::BAYJim CNF ENTP PPASEL DECtermTue Oct 16 1990 13:4915
    One way to keep it from going away would be to execute another 
    command procedure first, for instance COM3.COM, that says:
    
    			$ OPEN/SHARE/WRITE xxx  KEEP_IT_OPEN
    
    Then when you OPEN/SHARE and close from COM2.COM it will stay alive
    (until you CLOSE KEEP_IT_OPEN).
    
    As for the behavior of opening and closing a channel causing the window
    to close, I'm not sure whether thats expected behavior or not.
    
    If its REALLY a problem, QAR it and I'll investigate it.
    
    Jim
    
3469.2refcnt == 0 -> delete DECTERMVINO::MCARLETONReality; what a concept!Tue Oct 16 1990 15:3116
    > As for the behavior of opening and closing a channel causing the window
    > to close, I'm not sure whether thats expected behavior or not.

    It is expected behavior.  The DECterm controller assumes that once the
    last channel to a DECterm window is closed, the user doesn't need the
    window any more.  This is also the only way for a program to get rid
    of a DECterm window.  I had to jump through hoops to get every last
    channel closed to my DECterm window to make it go away.  We need some
    other way to control the DECterm windows created by DECwTermPort or
    create/term so that the applications can control the windows.  These
    kinds of feature requests have been passed over in favor of putting
    time into bug fixes that had to be done for each new version.

    							MJC

3469.3what about "/nohangup", won't that keep it around?LEVEL::OSMANsee HANNAH::IGLOO$:[OSMAN]ERIC.VT240Tue Oct 16 1990 16:5413
I think this will work.  First, LOG IN the DECterm (i.e.
create it as a normal DECterm).

Then, you need privileges, and you say

	$ set term/permanent/nohangup

then log off it.

I think this will keep it around.

/Eric
3469.4DECWIN::MESSENGERBob MessengerWed Oct 17 1990 13:569
Re :.2

Once the last channel to a TW or FT device is closed, the driver (not DECterm)
deletes the device.  I think you can prevent this from happening by setting
the NOHANGUP terminal characteristic.  Once the device is deleted DECterm
might as well delete the window as well, since there is no way for your
application to read from it or write to it.

				-- Bob
3469.5What do you propose?MINIM::BAYJim CNF ENTP PPASEL DECtermWed Oct 17 1990 14:0616
    
    Re: <<< Note 3469.2 by VINO::MCARLETON "Reality; what a concept!" >>>
                       -< refcnt == 0 -> delete DECTERM >-
    
    >We need some other way to control the DECterm windows created by
    >DECwTermPort or create/term so that the applications can control the
    >windows.  
    
    Did you have any particular mechanism in mind (for telling a DECterm to
    go away)?  
    
    On second thought, don't answer here.  There is a whole conference
    dedicated to DECterm, so perhaps we can discuss it there, or you could
    send me mail.
    
    Jim