Skip to content

exit() from repl embedded as coroutine leaves input echoing disabled #257

Open
@DavidS48

Description

@DavidS48

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions