Disable user hit "del" key to cancel

Ask a Question related to SCO, Design and Development.

  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]
    irontech Guest

  2. Similar Questions and Discussions

    1. Change user role from "Publisher" to "Administrator"
      Have three users on a particular website - all need to be "administrators". Two are listed as administrators (one of which is me), the third is...
    2. Acrobat9: How to Disable "Welcome back to Shared Review" Dialog ?
      Hi. Every time, when shared PDF file is opened, "Welcome back to Shared Review" dialog, "Comment & Markup" window, and "Please add your comments...
    3. How to disable the "Format Table" menu item?
      I have my site set up to disallow users to specify fonts and background colors, and yet in the "Table" menu, they can access the "Format Table"...
    4. How do you disable the right click ability when using<cfform type="flash">?
      How do you disable the right click ability when using <cfform type="flash">?
    5. "User cannot change pwd" and "Pwd never expire" by using Directory
      I create a account by using the DirectorySerive and it is running: --------------------------------------------------------- Dim ContainerEntry As...
  3. #2

    Default Re: Disable user hit &quot;del&quot; 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

  4. #3

    Default Re: Disable user hit &quot;del&quot; 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]brian@aljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

    Brian K. White Guest

  5. #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]brian@aljex.com[/email] -- [url]http://www.aljex.com/bkw/[/url]
    +++++[>+++[>+++++>+++++++<<-]<-]>>+.>.+++++.+++++++.-.[>+<---]>++.
    filePro BBx Linux SCO Prosper/FACTS AutoCAD #callahans Satriani

    Brian K. White Guest

  6. #5

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

    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
    James J Guest

Posting Permissions

  • You may not post new threads
  • You may 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