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

tput to query contents of user's screen?

Status
Not open for further replies.

mkhsys

MIS
Mar 3, 2002
2
US
Can "tput" be used to query what is currently displayed on a user's screen? My users all log into a 3rd party Point-Of-Sale program. I've written a script using "tput", which places a one word status message on a user's screen when certain conditions are met, like when they have unread mail. But, I don't want the message displayed unless they are in a particular menu. So, I need to able to evalaute what is currently displayed.
 
I had the same problem a while ago.

I solved it by modifying the menu routine to create a zero-length lock file, the routine that did the tput checked for the presence of this file before trying to write to the users screen.

If you're not able to modify your menu program, another approach would be to check what processes are running for each user - you may be able to identify that the user is at the correct menu from that. Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top