[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Xterm, Schmexterm



On Sun, Aug 22, 2004 at 02:41:54PM -0400, John Lowell wrote:
> Marc Wilson wrote:
> export PS1='\033[1;31m\]\h:\w\$\033[0;37m\] '

I_HATE_MBOX From the Bash Manual:

# `\['
#      Begin a sequence of non-printing characters.  This could be used to
#      embed a terminal control sequence into the prompt.
# 
# `\]'
#      End a sequence of non-printing characters.

corrected prompt:
export PS1='\[\033[1;31m\]\h:\w\$\[\033[0;37m\] '



Reply to: