Subject: Terminal problem
To: None <netbsd-users@netbsd.org>
From: Ivan Kanis <banana@tadpolecomputer.co.uk>
List: netbsd-users
Date: 07/07/2005 14:04:53
Hi, I am running NetBSD 3.0_BETA and bash 3.00.16. 

I login in an xterm and TERM is set to xterm. I am puzzled by the
following problem:

PS1='\[\033[01;35m\]\h\[\033[00m\]:\w\$'

Yields

hostname:~$$

There should be only one $. The escape sequence are generic ansi to
make the hostname purple.

export TERM=vt100

Fixes the problem. It looks like a termcap problem to me. It works on
Linux and Solaris. Any idea on how to fix it? I use the vt100 as a work
around.

Kind regards,
-- 
Ivan Kanis
Senior Software Developer
Tadpole Computer Limited

Success is counted sweetest
By those who ne'er succeed.
To comprehend a nectar
Requires sorest need.
    -- Emily Dickinson