sanic
sanic copied to clipboard
CLI: Terminal becomes no-echo if not entering REPL mode or exiting without Ctrl+D
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
When running sanic in development mode without turning off REPL, that is, sanic --dev server
, if I don't enter the REPL mode before exiting, the terminal becomes no-echo (what I type does not shows on screen). (This can be turned off by running stty echo
, but it shouldn't happen in the first place.)
Steps to reproduce:
- Run sanic in development mode without REPL disabled:
sanic --dev server
- Do one of the following:
- Exit the server immediately with
Ctrl+C
- Enter the REPL, then exit with
Ctrl+C
- Enter the REPL, then exit with
exit()
The terminal does not becomes no-echo if I enter the REPL, then exit with Ctrl+D
Expected Behavior
The terminal is not in no-echo mode.
How do you run Sanic?
Sanic CLI
Operating System
Linux
Sanic Version
23.12.0