sanic icon indicating copy to clipboard operation
sanic copied to clipboard

CLI: Terminal becomes no-echo if not entering REPL mode or exiting without Ctrl+D

Open Huy-Ngo opened this issue 5 months ago • 3 comments

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:

  1. Run sanic in development mode without REPL disabled: sanic --dev server
  2. 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

Huy-Ngo avatar Jan 11 '24 04:01 Huy-Ngo