Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: cygwin
Compiler: gcc-4
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc'
-DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H
-DRECYCLES_PIDS -I. -I/usr/src/bash-4.1.10-4/src/bash-4.1
-I/usr/src/bash-4.1.10-4/src/bash-4.1/include
-I/usr/src/bash-4.1.10-4/src/bash-4.1/lib -I/usr/include/ncursesw -g -O2 -pipe
uname output: CYGWIN_NT-5.1 fr-31-01-07-021 1.7.20(0.266/5/3) 2013-06-07 11:11
i686 Cygwin
Machine Type: i686-pc-cygwin
Bash Version: 4.1
Patch Level: 10
Release Status: release
Description:
Adding colors on last line of PS1 cause caractere shift on history
recall
Repeat-By:
With mintty terminal:
PS1='\h Hello everybody\n\e[1;35m\]Hi\e[0m\]>'
<< cursor up >>
<< cursor down >>
the line look like:
Hi>PS1='\h Hello
With putty terminal (with default configuration):
with the same PS1, when the cursor is on the last line of the terminal
when I call back a long command (displayed on 2 or more lines) from
history
this line is badly displayed.
Fix:
[Description of how to fix the problem. If you don't know a
fix for the problem, don't include this section.]