[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug with newline in prompt
From: |
Chet Ramey |
Subject: |
Re: Bug with newline in prompt |
Date: |
Wed, 13 Dec 2000 16:01:22 -0500 |
> GNU bash, version 2.04.11(1)-release (i386-redhat-linux-gnu)
> Copyright 1999 Free Software Foundation, Inc.
>
> PS1=${bold}\h:\u \w\$\n${unbold}\$
>
> Where ${bold} and ${unbold} are from setterm -bold on and setterm -bold
> off
First, you need to bracket the sequences of unprintable characters in
your prompt string with \[ and \]. Look at the bash FAQ, question E3.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/