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]

Re: Fw: failure notice



...

       PS1="\[\e[1;32m\]\h \! $ \[\e[0m\] "

The real issues is that I still have no real clue on how these escape
sequences work!! ...
`man bash`, section PROMPTING; the \[ and \] are not escape sequences for the terminal but meta syntax in the prompt, telling the shell that the string inside is an escape sequence and shall not be accounted for prompt line width. If you get that wrong, the shell will obviously be confused about its respective current position.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]