In the Git Bash shell of Windows 11, after terminating the script execution, there are anomalies and lags when inputting commands.
https://github.com/user-attachments/assets/ca4ff8af-48f4-4563-aafc-f31d28d0a2b0
After entering the virtual environment using Hatch and starting a project, pressing Ctrl+C to terminate the run causes the terminal to become unresponsive. At this point, any input will cause lag, and consecutive characters may appear to be stuck or inconsistent with actual input. This issue has not occurred when using other methods to manage virtual environments.
Is the underlying program/process still running in the background?
The process is not running in the background.
I am having the same issue in Powershell and cmd. In fact in cmd, one does not need to run a script, just pressing Ctrl-C at the prompt triggers the odd behaviour. After a Ctrl-C, pressing enter at the prompt alternates the prompt between having the (env name) prefix and not having it.
In powershell, aborting any process with Ctrl-C messes up the terminal. Characters go missing as you type. Also the (env name) prefix disappears randomly.
It only started happening recently for me, though I mostly work in WSL where I have no issues.
It makes no difference if I use the msi installer, or install with pipx. Same issues.