Closed extremepayne closed 5 years ago
Interesting. This is hitting an issue with resetting the signal handlers back to what they were before you ran the code. I'm going to guess it has returned None and doesn't like that being set.
Yeah - running in reply it looks like the SIGWINCH handler is None. I'm not sure that you there is a good solution here. Best we can do is reinstate the Python default, which is strictly speaking wrong.
I can code up a workaround, but that probably means any resize handling in repl.it will stop working.
I haven't been able to test on repl.it, but this change handles the relevant case.
Hmmm... I don't believe I can test it either, at least until the patch is included in a PyPI release, but it looks like that should help. Thanks! In the meantime, I can try this out on a real terminal 🙂
Describe the bug The example program doesn't run in a repl.
To Reproduce
Expected behavior I expected the example program to run (which it did) and then exit gracefully instead of crash upon hitting q to exit.
Screenshots
System details
Other I'm using repl because I'm on a chromebook that doesn't support linux apps.