Fix shell prompt so that terminal colouring is bracketed, allowing the terminal to know how wide it is