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

Conference noted::hackers_v1

Title:-={ H A C K E R S }=-
Notice:Write locked - see NOTED::HACKERS
Moderator:DIEHRD::MORRIS
Created:Thu Feb 20 1986
Last Modified:Mon Aug 03 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:680
Total number of notes:5456

517.0. "SMG problem" by LEROUF::GENTILI () Thu Jul 23 1987 16:26

Hi everybody,


I would like some ideas to be able to direct sys$output messages 
into a virtual display.
I am developping a tool using CMS callable interface mostly, this
tool is menu driven but at a certain step I've a routine running that
output messages ,information messages, or error messages..I would like to
be able to direct this message in a virtual display.



Any ideas ???


Franco.
T.RTitleUserPersonal
Name
DateLines
517.1A couple of ideasCSC32::HAGERTYDave Hagerty, TSC, Colorado SpringsSat Jul 25 1987 05:3410
    You could lib$spawn yourself a subprocess and put the output into
    either a mailbox or a file, then smg$put_with_scroll that data into
    a virtual display.  If you want to do it all in the context of the
    same process, you will have to write some special code to do it.
    I have done this with a condition handler in which I used either
    $getmsg or $Putmsg with an action routine, built the string from
    the arguments passed to the condition handler, then
    smg$put_with_scroll'ed that string.
    
    						Dave()
517.2Try CLT::SMG and V5.0 SMG kitUBEAUT::MACKAYDon MackaySat Jul 25 1987 22:555
    Try also the CLT::SMG notes file, especially the V5.0 SMG kit as
    that has SMG$CREATE_SUBPROCESS, SMG$DELETE_SUBPROCESS AND
    SMG$EXECUTE_COMMAND procedures that work with virtual displays.
    
    Don
517.3Hooks in $PUTMSG for this (?)SMAUG::MENDELWed Jul 29 1987 16:4014
    (The following is theory ... that is, I've never actually tried
    it.)
    
    By using $PUTMSG, an Action Routine can be specified, and this 
    action routine is called with a descriptor of the message text.
    
    In the action routine, you can look at (and do something with)
    the text that gets written. The, by returning a failure status 
    in the action routine, the message is not printed.
    
    In this way, you can catch the message before it is written and
    pass it to SMG.
    
    Kevin Mendel   
517.4SQM::RICOThu Jul 30 1987 16:317
    Re .3

    It works.  I have an application that uses $PUTMSG extensively,
    where all output actually goes to a mailbox instead of
    SYS$OUTPUT/SYS$ERROR, using the technique you describe.

            Rico