This is the mail archive of the
mailing list for the Cygwin project.
Re: first line overwritten in Bash
- From: Randall R Schulz <rrschulz at cris dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 11 Apr 2003 18:00:08 -0700
- Subject: Re: first line overwritten in Bash
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.
At 17:42 2003-04-11, Luciano wrote:
I customized my prompt in Bash, but it is not working.
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?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html