APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > changing interrupt key
Printer Friendly Version




News Group Posts

changing interrupt key




From: James J <SPAMMYjajii1@netscape.net>
Subject: Re: Disable user hit "del" key to cancel
Date: Sat, 12 Jul 2003 09:46:22 +0000 (UTC)
References: <3089607.1057741339@dbforums.com>
<3093568.1057802156@dbforums.com> irontech <member27304@dbforums.com> expounded in news:3093568.1057802156@dbforums.com: > > Brian K. White, > > Is that any way I could disable only all oridinary user hit delete key > but not root? > > I have thousand plus users ID, I tried put (stty intr "") into > /etc/profile, but it effect even root. > > Thanks.




 Depending on the circumstances, I think a better option might be to change 
intr to something the users aren't likely to hit accidentally.  That way, 
you still have an "interrupt" key available if a user actually needs it.  
The key can be the same for all users, but if you have different terminal 
types, that could be an issue (not all keyboards have the same keys).

 For example, we wanted to use Delete as a "hot key" in our application 
(along with Insert, Home, End, etc.), so we changed intr to something else.

 FWIW, we used "stty intr \^\~".  On most US terminal keyboards, that was a 
Control-tilde (Control and the character to the left of the number 1 above 
the letters, either "`" or "~").  On an SCO console it was Control-6 (the 6 
above the letters, not on the numeric keypad).

 James


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - SCO_OSR5




Unix/Linux Consultants

Skills Tests

Guest Post Here