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

CLI: Add a signal handler to reset the cursor on interrupt #2603

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jul 8, 2024

In CLI we use cargo-generate for init and new.

cargo-generate uses things like Select from dialoguer.

Those things hide your terminal's cursor for aesthetic purposes.

If you press Ctrl + C while those things are active, you will end up with a cursorless terminal.

See: console-rs/dialoguer#294

This PR adds a ctrlc signal handler to reset the cursor and exit.

@jkelleyrtp jkelleyrtp merged commit 28d1b30 into DioxusLabs:main Jul 23, 2024
5 checks passed
@jkelleyrtp
Copy link
Member

Thanks! Much better

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

Successfully merging this pull request may close these issues.

1 participant