[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PS1 multiline with colors
From: |
BASTIDON , Stéphane |
Subject: |
PS1 multiline with colors |
Date: |
Thu, 4 Jul 2013 14:12:42 +0000 |
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.]
- PS1 multiline with colors,
BASTIDON , Stéphane <=
- Re: PS1 multiline with colors, Chris Down, 2013/07/04
- Re: PS1 multiline with colors, Greg Wooledge, 2013/07/05
- Message not available
- Re: PS1 multiline with colors, Greg Wooledge, 2013/07/05
- RE: PS1 multiline with colors, BASTIDON , Stéphane, 2013/07/05
- Re: PS1 multiline with colors, Linda Walsh, 2013/07/08
- Re: PS1 multiline with colors, Dan Douglas, 2013/07/09
- Re: PS1 multiline with colors, Geir Hauge, 2013/07/09
- Re: PS1 multiline with colors, Dan Douglas, 2013/07/05