Using print_formatted_text will clobber the prompt / not recreate it after each output. If I swap print_formatted_text for print, it restores the prompt after each output. Any suggestions to resolve this?