This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Lennart Borgman wrote:Thanks very much this! However I still have problem with long commands. I start Cygwin with
I do not remember anything about this now, but comparing to my current PS1 I can see that I has a \] after the last m. I have
PS1=\[\033[32;47m\w >\033[0m\]
That's incorrect. The \[ and \] are to be used only to delineate nonprinting sequences. If you include "\w >" inside them you will really muck up your prompt if you type a command wider than one screen.
PS1="\[\033[32;47m\]\w >\[\033[0m\]"
Brian
****** cygwin.cmd: @echo off set chere_invoking=1 D:\cygwin\bin\bash --login -i
Kind regards, Lennart
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |