-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor dissapears after CTRL-C in mocha --watch #2645
Comments
Yeah, this has been bothering me for a long time. Here's the equivalent bash:
|
This one has been bothering me a lot as well. I tried to spot what caused it a while ago, but didn't have the time to properly dive into it. It's also a hard issue to write a good test case for, so verifying a fix without regressions is a bit tricky. PR welcome obviously |
any appetite for just keeping the cursor visible in the first place? Using tmux, it's not obvious which pane is focussed without a cursor - or is that just me? |
I think we're not listening to enough signals that might cause an exit, so we don't call cleanup properly. We could try using https://github.com/jtlapp/node-cleanup |
Same |
This is happening to me too. Personally, I'm in the same situation as refractalize. I'd be more than happy if there was a flag or something to disable this altogether. |
Yet more alternatives, an NPM script:
|
closed by #3980 |
Okay nevermind, the issue was whenever running via yarn 1 or my own spawn scripts that fail to pass SIGINT to the child process and wait for it to close. |
It seems mocha hides the cursor during the run but it forgots to enable it again when a SIGINT is sent...
In my script i had to do:
The text was updated successfully, but these errors were encountered: