redrawing prompt after every command