Re: Fw: failure notice
- Date: Sun, 26 Aug 2018 23:41:38 +0200
- From: Thomas Wolff <towo@xxxxxxxx>
- Subject: Re: Fw: failure notice
`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.
PS1="\[\e[1;32m\]\h \! $ \[\e[0m\] "
The real issues is that I still have no real clue on how these escape
sequences work!! ...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple