[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help setting BackSpace behaviour for slink

On Thu, Nov 26, 1998 at 11:56:51PM +0100, Yann Dirson wrote:

> However, it gets (is it really what out keyboard policy asks ?)
> character 263 decimal (latin1 superscript 3) when I press Backspace
> both in an xterm and on the console.
> It works as expected when I hardcode to handle char 263 as a
> backspace, but I don't really think that's the Right Way to solve
> this.

There is no ASCII character 263, since it's more than 8 bits :)

Interestingly, 263 = 255 + 8, and 8 is the character for ^H, Backspace. 
This probably doesn't mean anything :)

However, 263 is 0407 in octal, which according to /usr/include/curses.h is:

  #define KEY_BACKSPACE   0407            /* Backspace (unreliable) */

You know, with a few minor implementation changes, curses might not suck.
I wonder what "unreliable" means.

Looks like you should accept KEY_BACKSPACE as a valid backspace character...

Have fun,


Reply to: