let IOHelper keep track of what was rendered to the prompt and clear it up itself

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
introduced a rerender function to clear and render the prompt

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>