Ok, I think this fix my problem, thanks.<br>But I have a new info about this: first than put colors on bash, the Debian terminals already have this problem.<br>This was already fixed on repositories?<br><br>Thanks<br><br>Saulo<br>
<br><div><span class="gmail_quote">2008/3/11, Carsten Hey &lt;<a href="mailto:c.hey@web.de">c.hey@web.de</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
close 470230<br> thanks<br> <br> Hi,<br> <br> since Debian bug #53491 (where a user had the same problem as you) has<br> been fixed, /usr/share/doc/bash/README.Debian.gz states:<br> <br> | 4. bash doesn&#39;t display prompts correctly.<br>
 |<br> | When using colors in prompts (or escape characters), then make sure<br> | those characters are surrounded by \[ and \]. For more information<br> | look at the man page bash(1) and search for PROMPTING.<br> <br> This is exactly what is missing in your /etc/profile.<br>
 <br> Additionally, the so called skeleton files, which are copied into the<br> home directory of a new user have an example for a colored bash prompt,<br> at least in current sid and when there is no other configuration files,<br>
 i.e. from SuSE Linux.&nbsp;&nbsp;So, in my opinion, the bash maintainer has done<br> everything possible to document this.<br> <br> I did the required changes for you, please substitute the paragraph that<br> sets $PS1 in your /etc/profile with the following to fix this<br>
 misconfiguration and thus make multiple lines in bash work again:<br> <br> if [ &quot;$PS1&quot; ]; then<br>&nbsp;&nbsp;if [ &quot;$BASH&quot; ]; then<br>&nbsp;&nbsp;&nbsp;&nbsp;#PS1=&#39;\u@\h:\w\$ &#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;PS1=&quot;\[\033[01;31m\]\u@\h:\w\$ \[\033[0m\]&quot;<br>
&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;if [ &quot;`id -u`&quot; -eq 0 ]; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#PS1=&#39;# &#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PS1=&quot;\[\033[01;31m\]# \[\033[0m\]&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#PS1=&#39;$ &#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PS1=&quot;\[\033[01;31m\]$ \[\033[0m\]&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;fi<br>&nbsp;&nbsp;fi<br> fi<br> <br> I hope you are satisfied with this answer and I&#39;m closing this bug now.<br> <br> <br> Regards,<br> <br>Carsten<br> </blockquote></div><br>