I wonder about this part also. It is to make things more dynamic so when the prompt is updated it is repainted. But usually this is accompanied by a new prompt print anyways. I'm not sure this is worth the extra complexity? Not sure this is a performance hit though.