Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What code keeps server mesages from bleeding into the main area

Status
Not open for further replies.

Thunderwind

IS-IT--Management
Jan 24, 2002
7
US
Does anyone know what the code is to capture the server message so it does not bleed into the main screen?

I know it involves the "statmsg", but I do not know how to differentiate between regular text and the server message.

I am running FACS, wich runs on an HP Unix box. If you require any more info, please post or email me

Thank you in advance.
 
What do you mean by server message? Is this some text that the remote side sends that shows up in the terminal window, or are you looking to prevent information from showing up on the status line? The statmsg command lets your script display information of your choosing on the status line. You could use the set statusline off command to completely turn the status line off if that would solve your problem.
 
NO, I am looking to get the data to go to the status line, not the other way around. I manage a FREE FACS (Flexible Automated Collection System) support forum. It is a one of a kind web site. Please stop by:
 
Are you trying to keep only a certain string from showing up in the terminal window, or could there be any number of text strings that you want to display on the status line? You could write a script that used the when target command with the strip parameter to keep a particular text string from appearing on the screen. The procedure called by the when command could then use the statmsg command to output the string on the status line. Here is a sample script I wrote that does this:

proc main
when target 0 "target string" strip call foo
while 1
yield
endwhile
endproc

proc foo
statmsg "target string"
endproc

If you are trying to trap only a few different strings, then this should work for you. You will just need to add an additional when command for each string that you want to filter, as well as another procedure that will output that string to the status line.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top