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!

Unix Sco 6 Disabling key

Status
Not open for further replies.

knyam

Technical User
Mar 18, 2004
16
ZW
hie. i would want to disable the keys F3 and F2 from my unix users. how can i do it.
 
This would probably be an issue with your application, rather than UNIX itself.

What is the application?

"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
unfortunately i am running an old version of tetra cs3. the changes cannot be done on the application side. someone was suggesting that this can be accomplihed by changing the .profile file.
 
I would investigate either remapping those keys or trapping them. Both of these options could be done to the .profile.

Hope this helps you in the right direction!
 
your contribution helped a lot. i inserted the following line in my .profile

stty susp 'F3'

the application is no longer accepting the letter F and not the function F3 that i wanted to disable.

sorry for the late response my internet link was down
 
When you press the "F3" on the keyboard, you do not send those EXACT strings to the application. It's not the same as pressing "F" followed by "3". What actually gets transmitted depends upon your Terminal Emulation program running on the connected PC's. If you are using dumb terminals (nostalgic, but they never get viruses), they also send a short string of characters for each of the Function Keys.

For example, "F3" sends <esc>[O on my Putty session.
So, to disable or trap that sequence, you'll need to find a way to determine the REAL sequence that is sent. If your users run different emulation packages, your work is multiplied.

"stty susp" is not what you need.

Does your application use a TERMCAP or TERMINFO file?



"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top