This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash Command History Scroll Back Problem with Multi-line Commands
Yup, thanks guys, I found out the exact source is the prompt setting:
This does not work: export PS1="\e[32m\w$\e[0m "
This works fine: export PS1="\w$ "
I inherited this bashrc, so the first settings are hieroglyphics to me.
Seeing as I don't care much about colour anyway, I'll just remove it.
Thanks so much!
"Brian Dessent" <brian@dessent.net> wrote in message
42BB0603.20745D88@dessent.net">news:42BB0603.20745D88@dessent.net...
> ImranKhan wrote:
>
>> This falls in the annoyance category. Anyone have problems using scroll
>> back history with commands that are long and split over muliple lines in
>> the
>> terminal?
>
> No problem at all here. This is usually caused by improper use (or lack
> of) \[ and \] in the prompt to tell bash which characters are
> nonprinting.
>
> Brian
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/