interaction.py: Fix generate_prompt_text and its use
TerminalInteraction.generate_prompt_text()
was printing information
to the terminal when it should have been including that information in
the returned string. This has been fixed.
Edited by Ahmon Dancy