I know that if I want to make xterm erase a character when I press backspace, I do:
stty erase ^? but I also want xterm to erase a character when I press shift+backspace, and I can't find an explanation for how to do this.
With a little C program using ncurses, I have determined that when I press shift+backspace, it translates to the following sequence of bytes:
27 91 51 59 50 126
When I press ctrl-v and then shift+backspace, it shows up in xterm as:
^[[3;2~ (where ^[ is, of course, the escape character, ASCII byte 27).
I have tried doing
stty erase followed by ctrl-v, shift+backspace but I get the following result:
~ > stty erase ^[[3;2~ stty: invalid integer argument `\033[3' Try `stty --help' for more information. 2~: Command not found.
Is there a way to do this? Or is it impossible because shift+backspace is not a single byte but 6?