Fixes for readline output messing up the prompt.