Subject: Re: -key "introduction"
To: Christopher W. Richardson <cwr@nexthop.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 03/29/2005 20:33:54
In message <sxkpsxit4qu.fsf@crichardson.nexthop.com>, Christopher W. Richardson
 writes:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Zbigniew Baniewski <zb@ispid.com.pl> writes:
>
>> Checked it in the same way, with the same result. In the text
>> console mode I also got ^? in both cases.
>>
>> And that is the source of the problem.
>
>Hrmph.
>
>cwr@achilles#stty erase undef
>cwr@achilles#stty -icanon; cat >/tmp/xx
>[BACKSPACE][DELETE]^C
>cwr@achilles#stty sane
>cwr@achilles#od -c /tmp/xx
>0000000   \b 177
>0000002
>cwr@achilles#uname -a
>NetBSD achilles 2.0.2 NetBSD 2.0.2 (ACHILLES) #1: Wed Mar 23 13:46:58 EST 2005
> cwr@achilles:/localhome2/obj/sys/arch/i386/compile/ACHILLES i386
>cwr@achilles#
>
>I undef'ed erase, as I set it in my .profile.  That was all on
>the console under ksh.  I have no explanation for why this isn't
>working for you; maybe it is a bug in 2.0.
>

I should have mentioned -- my tests were on 3.99.1 and 2.99.16, and I 
see the same codes for DEL and BS in console mode.

		--Prof. Steven M. Bellovin, http://www.cs.columbia.edu/~smb