command prompt trouble

Tom Black tcblack at wireless111.net
Sat Apr 24 19:21:45 PDT 2004


The command prompt code in  my /etc/profile is:
PS1="[\[\e[31;40m\]\u\[\e[34;40m\] @ \[\e[35;40m\]\w\[\e[0m\]]\$"

The output however goes on two lines as:
[tcblack at Brandon
/etc]$

So I type (on one line)
$ export PS1="[\[\e[31;40m\]\u\[\e[34;40m\] @ [\e[35;40m\]\w\[\e[0m\]]\$"
and now it works.
[tcblack @ /etc]$
Somewhere there is a record of the wrong codes but "where"?



-- 
Thomas Black
Linux Tutored by LFS 5.0
http://wr189.wireless111.com

Linux From Scratch:.˜./V\//†\\/(   )\^`˜´^
     .˜.
     /V\
    //†\\
   /(   )\
    ^`˜´^



More information about the blfs-support mailing list