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

fix(tui): generate stop event on ctrl c #9296

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

chris-olszewski
Copy link
Member

Description

Previously we had used a None return from the input handler as a signal that the TUI should shut down. We no longer do this so we need to explicitly return Event::InternalStop to signal that we should shut down the TUI.

Testing Instructions

Start up a dev task with 2.2.1 and observe that on Ctrl-C the terminal is left in raw mode:
Screenshot 2024-10-20 at 3 31 40 PM

With the build from the PR you should note that the on Ctrl-C the terminal is returned to a cooked mode:
Screenshot 2024-10-20 at 3 32 14 PM

Copy link

vercel bot commented Oct 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 20, 2024 7:32pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-gatsby-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-native-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-svelte-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-tailwind-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm
examples-vite-web ⬜️ Ignored (Inspect) Oct 20, 2024 7:32pm

@chris-olszewski chris-olszewski merged commit bd7d235 into main Oct 20, 2024
40 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/fix_ctrl_c_cleanup branch October 20, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants