Subject: Re: "@" erases line, "#" erases previous character, serial console
To: None <netbsd-help@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: netbsd-help
Date: 04/26/2006 17:30:47
In article <20060426005654.GA11613@yuba.kcn.ne.jp>,
Henry Nelson  <netb@yuba.kcn.ne.jp> wrote:
>On Tue, Apr 25, 2006 at 09:19:59PM +0000, Christos Zoulas wrote:
>> In article <20060425205316.GA11023@yuba.kcn.ne.jp>,
>> Henry Nelson  <netb@yuba.kcn.ne.jp> wrote:
>> >I *thought* I had a serial console working fine on i386, but at the
>> >login prompt, "@" acts like ^u and "#" acts like Backspace.  Once
>> >logged in, the keyboard acts normally -- it's only at the login
>> >prompt and password input.
>> >
>> >Ideas?  This one has me totally stumped.
>> 
>> man gettytab?
>
>Sorry, still not sure what to do.
>
>Should I edit "/etc/gettytab" and change
>        default:\
>                :ce:ck:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:
>to
>        default:\
>                :er='^?':kl='^u':ce:ck:np:im=\r\n%s/%m (%h) (%t)\r\n\r\n:
>
>I don't recall ever having such a problem on sparc (IPC, Classic, SS5).  Is
>there something inherently different between sparc and i386 in the way getty
>works?  (IIRC, I have never used wscons with sparc, and am a bit new to it,
>if that is the source of my problems.  See 2nd question below.)

Can you login to another window and type:

stty -af /dev/console or the serial tty?

>
>After logging in, wscons takes over, so I no longer have a problem; is that
>right?

No, but the shell can modify the tty settings [command line editing capable
shells].

christos