Hi Pedro,
> I just discovered that \177 works too.
So this apps values must be wrong.
You didn't read my post carefully enough; that's one of the things I was trying to tell you. Also, you haven't been providing accurate information on what you want to do, which is why I had to provide information about two characters.
You keep saying that you want to trap the backspace character but what you really want is to trap the character that's produce when you hit "that wide key at the top right of the main part of the keyboard". On an Apple keyboard that key has "delete" written on it. I guess that you must have a PC keyboard because they have "backspace" written on that key. However, that doesn't matter; on an Apple computer, no matter what is written on the key, that wide key sends a DEL character, ASCII 127. (thanks Andy, I forgot the name) That's 127 in base 10. In base 8, or octal, that's 177 and in base 16, hex, that's 7F.
On the other hand as I said before, you can make any of these keyboards send the backspace character, although not with a single keystroke. To send a backspace character in a terminal, use the key sequence:
<Control>-v, <Control>-h
In the terminal you will see the characters ^H. Just remember that that's merely a human readable representation. There's only one real character produced, the backspace. There's no actual carat or H characters involved.
--
Gary
~~~~
Why a man would want a wife is a big mystery to
some people. Why a man would want
two wives is
a bigamystery.