You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Maybe this have something to do with input() at sanic/cli/console.py:220 being interrupted not handled correctly?
Huy-Ngo
changed the title
CLI: Terminal becomes no-echo if not entering REPL mode
CLI: Terminal becomes no-echo if not entering REPL mode or exiting without Ctrl+D
Jan 11, 2024
Is there an existing issue for this?
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 runningstty echo
, but it shouldn't happen in the first place.)Steps to reproduce:
sanic --dev server
Ctrl+C
Ctrl+C
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
The text was updated successfully, but these errors were encountered: