Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.2.1.1.2.20030411175636.0261b920@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Fri, 11 Apr 2003 18:00:08 -0700 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: first line overwritten in Bash In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Luciano, You're not signalling BASH (and the readline library it uses) which portions of that prompt do not produce characters on the screen. That causes it to lose track of where the cursor really is when the prompt is printed. Any non-printing sequence in PS1 should be surrounded by \[ and \]. See the PROMPTING section of the BASH manual for more details. Randall Schulz At 17:42 2003-04-11, Luciano wrote: >I customized my prompt in Bash, but it is not working. > >PS1='\033[38;1m\][\!]\W> \033[0m\]' > >When I type and reach the end of the first line, it continues on the >same line, overwriting what is already there. The subsequent lines >are typed correctly. It only happens with rxvt. In pure DOS console, >though, my prompt has smiling face symbols on either side. What have >I done wrong? > >Thanks, > >Luciano ES -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/