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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Data from the Statusline

Status
Not open for further replies.

divod

Technical User
Mar 22, 2005
6
US
Is there a way to capture or read the data in the Statusline? I am refering to the status line at the top of the terminal window. I did find the commands to turn it on or off.

emulation statusline OFF | ON

or change the format

emulation statusattr NORMAL | REVERSE | UNDERLINE-

But I do not know how to capture what it actually says.
thank you
 
I'm not aware of a specific way to read the status line per se, but you should be able to use the termgets command to read the text from Procomm's display. If the status line is at the very top of the Procomm display, then termgets 0 0 sLine, where sLine is a string variable defined in your script, should work.

 
Divod,

I think you want the $STATMSG system variable. It returns the message in the status line:

string getStat
getStat = $STATMSG
usermsg getStat

See if that works for you.
Eddie
 
Thanks, but termgets 0 0 sLine will read the first line after the status line, I want to read the statusline.
 
Sorry but $STATMSG is for the status line at the bottom of the window. I am looking for the statusline at the top of the window, I believe that this line is not always available depending on the emulation (I am using wyse 50). Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top