fix non printing characters in promt causing display problems in iTerm2