Subject: Re: Assorted Problems
To: None <mike.long@analog.com>
From: Brett Lymn <blymn@awadi.com.au>
List: netbsd-help
Date: 10/29/1996 14:45:13
According to Mike Long:
>
>
>>Date: Mon, 28 Oct 1996 09:24:42 -0600 (CST)
>>From: Rob Rutherford <mirage@hpserv.keh.utulsa.edu>
>
>>	1)  The user account I've created echoes the ^? to the screen and
>>doesn't backspace over the character.  However the system aknowledges the 
>>changes made to the line.  Seems like a corrupt shell, but the sh works 
>>fine with root, do I have a problem with the tty settings?
>
>See stty(1).  You probably need to define an erase character;
>something like
>
>if (! $?prompt) exit 0
>stty erase '^?'
>

Close but not quite the right answer..... if the shell behaves like
the del key worked but is not removing the characters (which is what
Rob describes) then you need to set the echoe in stty, like so:

if (! $?prompt) exit 0
stty echoe

>in your .cshrc should do it.  (Obviously, this doesn't apply if your
>login shell is not /bin/csh.)
>

For sh you want something like:

if [ "$PS1" = "" ]; then
  stty echoe
fi

-- 
Brett Lymn, Computer Systems Administrator, AWA Defence Industries
===============================================================================
  "Upgrading your memory gives you MORE RAM!" - ad in MacWAREHOUSE catalogue.