Professional Web Applications Themes

Disable user hit "del" key to cancel - SCO

Hi Brian K. White Thank you for your helpful reply. :) -- Posted via [url]http://dbforums.com[/url]...

Sponsored Links
  1. #1

    Default Re: Disable user hit "del" key to cancel


    Hi Brian K. White

    Thank you for your helpful reply. :)

    --
    Posted via [url]http://dbforums.com[/url]
    Sponsored Links
    irontech Guest

  2. #2

    Default Re: Disable user hit "del" key to cancel


    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.

    --
    Posted via [url]http://dbforums.com[/url]
    irontech Guest

  3. #3

    Default Re: Disable user hit "del" key to cancel

    On Thu, 10 Jul 2003 02:55:56 +0000, irontech wrote:
    >
    > 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.

    ((`id -u`)) && stty intr ""


    --
    Brian K. White -- [email]brianaljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

    Brian K. White Guest

  4. #4

    Default Re: Disable user hit &quot;del&quot; key to cancel

    On Thu, 10 Jul 2003 01:44:12 -0400, Brian K. White wrote:
    > On Thu, 10 Jul 2003 02:55:56 +0000, irontech wrote:
    >
    >>
    >> 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.
    >
    >
    > ((`id -u`)) && stty intr ""
    excuse me
    that works only in ksh (and bash and probably others) but not
    plain sh. So here is the less interesting but more compatible:

    [ `id -u` = 0 ] || stty intr ""


    --
    Brian K. White -- [email]brianaljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

    Brian K. White Guest

  5. #5

    Default Re: Disable user hit &quot;del&quot; key to cancel

    irontech <member27304dbforums.com> expounded in
    news:3093568.1057802156dbforums.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 cirstances, 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
    James J Guest

Similar Threads

  1. Change user role from "Publisher" to "Administrator"
    By trialbomfunknumber2 in forum Macromedia Contribute Connection Administrtion
    Replies: 1
    Last Post: September 19th, 06:51 AM
  2. Acrobat9: How to Disable "Welcome back to Shared Review" Dialog ?
    By K.Kuni@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 3
    Last Post: September 4th, 06:42 PM
  3. How to disable the "Format Table" menu item?
    By abna in forum Macromedia Contribute General Discussion
    Replies: 2
    Last Post: October 14th, 09:31 AM
  4. How do you disable the right click ability when using<cfform type="flash">?
    By Chikowski in forum Coldfusion Flash Integration
    Replies: 0
    Last Post: July 7th, 08:41 PM
  5. Replies: 4
    Last Post: December 7th, 06:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139