[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

2941.0. "How to send messages to Session Mgr window?" by KYOA::KOCH (My brother did not lose the election) Fri Jun 15 1990 12:01

	Can someone point or tell me how to send messages to the
	session manager window from DCL? I want to this from a
	non-priviledged user account. When I start an application, 
	it tell me "Starting DECterm" and I want my command procedure
	which does this to send messages to the status window giving
	info on what's going on...
T.RTitleUserPersonal
Name
DateLines
2941.1SMAUG::MENDELIn some strange power's employFri Jun 15 1990 13:457
        Writing to the SM's terminal (usually TWA1:) causes the information
	to be displayed, but it takes SHARE to access the device, and the 
	output is munged a little. 

	I think there's another note in here somewhere about this.

	Kevin
2941.2Can anyone point to the note in question?KYOA::KOCHMy brother did not lose the electionFri Jun 15 1990 14:208
>        Writing to the SM's terminal (usually TWA1:) causes the information
>	to be displayed, but it takes SHARE to access the device, and the 
>	output is munged a little. 

>	I think there's another note in here somewhere about this.

	If anyone can point to the note, this would help. Wouldn't
	a better mechanism be a mailbox?
2941.3Look at note 73.TMIS01::DORONDoing my BEST !!!Sun Jun 17 1990 04:303
 I have just read note #73 that puts the opcom messages into the SM's window.
 May be this could help.
						*-Doron-*
2941.4HKOVC::TERENCEFrom Middlesex, UWOTue Jun 19 1990 04:3713
    <<< Note 2941.0 by KYOA::KOCH "My brother did not lose the election" >>>
                -< How to send messages to Session Mgr window? >-

>	Can someone point or tell me how to send messages to the
>	session manager window from DCL? I want to this from a
>	non-priviledged user account. When I start an application,
>	it tell me "Starting DECterm" and I want my command procedure
>	which does this to send messages to the status window giving
>	info on what's going on...

$ define sys$output TWAn:
$ write sys$output "Have a nice day"
$ deassign sys$output
2941.5STAR::KLEINSORGEFred Kleinsorge, VMS DevelopmentTue Jun 19 1990 10:127
    
    Note that .4 is a hack and depends on knowing that TWA1 (or whatever)
    is the session manager.  The TW device is likely to go away, and the
    session manager/terminal emulator may use another psuedo device.  So
    be prepared for any such hack to break.
    
    
2941.6SMAUG::MENDELIn some strange power&#039;s employTue Jun 19 1990 13:389
>>>    Note that .4 is a hack and depends on knowing that TWA1 (or whatever)
>>>    is the session manager.

	One could use f$pid to loop through the system for a process
	whose image name was DECW$SESSION, or whose process name was
	f$user(), and then get the physical terminal device name of that
	process, which results in the "TWA1:" under normal circumstances. 

        This reduces the hack-factor a little.