bash terminal/console strange overlapping behavior

Solution 1:

[SOLVED] I tested for this behaviour using the Ubuntu 11.10 live cd and did not have the same problems in terminal, so I guessed that a change I had made was likely to be the cause.

I had made some changes to the .bashrc file while following a tutorial on customising the bash user prompt, which must have caused this problem.

After restoring the original .bashrc file from backup, the problem with overlapping lines is resolved.

Thanks for your response Huckle. Cheers

Solution 2:

The issue is when some non-printed characters are not properly enclosed by \[ \].

make sure every option for colour, bold, underline etc is properly enclosed