delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <rrschulz AT cris DOT com> |
Subject: | Re: first line overwritten in Bash |
In-Reply-To: | <Xns935ADDA2B1532lucianoavgmxnet@80.91.224.249> |
Mime-Version: | 1.0 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |