[vox-tech] backspace keycode in C: xterm vs console

Mark K. Kim vox-tech@lists.lugod.org
Tue, 25 Dec 2001 22:37:47 -0800 (PST)


On Tue, 25 Dec 2001, Peter Jay Salzman wrote:

> is there any way to deal with this other than making the backspace
> keycode into a global variable (or worse, passing its value to every
> function that needs it)?

Two things:

   1. What type of program are you writing?

   2. What happens if you type `stty erase ^H` before running the program,
      under the console and under a terminal?

-Mark

--
Mark K. Kim
http://www.cbreak.org/mark/
PGP key available upon request.