BTW, thanks much for an overlooked, and elegant solution!
Bob Proulx wrote:
Linda Walsh wrote:
there some easy way to tell bash either to not keep track of what
it thinks is the screen width (and just allow it to wrap, if that's
possible), or to reset bash's idea of where it thinks it is on the
line?
The bash manual says:
PROMPTING
\[ begin a sequence of non-printing characters, which could be
used to embed a terminal control sequence into the prompt
\] end a sequence of non-printing characters
...