Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nathanjcochran
Copy link
Collaborator

@nathanjcochran nathanjcochran commented Oct 21, 2025

See Slack thread.

This restores the correct signal handling behavior when the spinner component (added in #63) is active, so that users can stop the program with ctrl-c.

The solution involved disabling input entirely for the spinner component (since bubbletea usually puts the input it "raw mode", which prevents ctrl-c from delivering a signal), and also disabling bubbletea's built-in signal handling (which would otherwise take effect after disabling the "raw mode" input). I think this is fine for our needs, since the spinner is just a display/output component for us.

@nathanjcochran nathanjcochran self-assigned this Oct 21, 2025
@nathanjcochran nathanjcochran merged commit d66506f into main Oct 21, 2025
2 checks passed
@nathanjcochran nathanjcochran deleted the nathan/fix-spinner-sigint branch October 21, 2025 18:12
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.

4 participants