-
Notifications
You must be signed in to change notification settings - Fork 731
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
Mouse codes are printed to the terminal on exit #82
Comments
I wonder whether PyAutoGUI could be used as part of this? Have a test wiggle the mouse and then |
My programing skills are not intermediate yet but I am a daily linux user. I'd like to try my hand at this, after recreation of the issue I would attempt to turn the unwanted mouse output into a daemon with the subprocess module |
My thinking is that this would require a shutdown routine for the event loop. In that routine we would use |
Should be fixed in 0.1.13 |
Did I solve your problem? Consider sponsoring my work on Textual with a monthly donation. Or buy me a coffee to say thanks. |
Sometimes mouse codes are printed to the terminal on exit. This tends to occur if you are moving the mouse around then exit quickly.
I suspect this is because the app exists prior to all mouse events in stdin being consumed.
Find a way to a) reliably reproduce this error and b) fix it.
I suspect this will require disabling input then posting a null event and waiting for that event to be processed, prior to exiting.
The text was updated successfully, but these errors were encountered: