Subject: Re: Question about terminals and keys
To: Jan Danielsson <jan.m.danielsson@gmail.com>
From: Geert Hendrickx <ghen@NetBSD.org>
List: netbsd-users
Date: 07/13/2006 18:48:51
On Thu, Jul 13, 2006 at 06:36:30PM +0200, Jan Danielsson wrote:
> Hello all,
> 
>    First I admit that there's a lot about terminals I don't understand.
> 
>    My root uses /bin/sh, my standard user uses /usr/pkg/bin/bash.
> 
>    When I login as my standard user, I have command line history. When I
> login as root I have command line history. When I run wterm in xorg as
> my standard user I have command line history. But when I "su" to root,
> Up/Down only produce control characters, so I can't access the command
> line history. It is somewhat annoying when I have mistyped something
> really long.
> 
>    Is this some terminal emulation issue? Is there any way to fix it?

Try "set -o emacs".  Other than that, you may want to set root's shell to
/bin/ksh for a bit more comfort.  

	Geert