Skip to content
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

junk text in terminal after exit if moving mouse around. #169

Open
steverweber opened this issue Sep 20, 2023 · 1 comment
Open

junk text in terminal after exit if moving mouse around. #169

steverweber opened this issue Sep 20, 2023 · 1 comment

Comments

@steverweber
Copy link

steverweber commented Sep 20, 2023

I'm seeing junk get printed out after closing carbonyl.

It seems to be an order of operations issue when the app is closing down the mouse pointer location is getting tied to stdout for a short time.

~$ carbonyl https://google.com
# while moving the mouse around hit `ctrl + c` to end the session.
~$ 51;54;20M51;55;20M51;54;20M51;53;20M51;52;21M51;49;22M51;48;23M51;46;24M51;45;26M35;44;28M35;46;30M35;49;32M35;53;34M35;57;34M35;61;34M35;66;32M35;70;30M35;71;28M35;70;26M35;66;24M35;58;22M35;49;20M35;41;20M35;36;20M35;34;20M35;33;21M35;33;22M35;35;24M35;37;25M35;40;27M35;44;27M35;48;28M
@steverweber
Copy link
Author

hacky workaround that passed a few test in bash

carbonyl https://fun.house
# read input for 1second
read -r -s -t 1 -n 9999 -p ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant