Open
Description
Running the following as a script from a Linux terminal, then exiting the repl with "exit()" rather than ctrl-D leaves input-echoing disabled in the terminal. I'd expect both exit methods to work normally.
import asyncio
from ptpython.repl import embed
loop = asyncio.get_event_loop()
loop.run_until_complete(embed(globals(), return_asyncio_coroutine=True))
No issues using ctr-D with the same script, no issues using a simple embed rather than a coroutine.