-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Terminating TUI with ctrl+c on Windows causes terminal to act weird #8860
Comments
Additional information: After reporting issue #8861, I tested what I reported here in that reproduction branch too (which is a pure reproduction repo created with |
Hey @espenja, it seems turborepo needs to flush the terminal to remove the fragments similar to how the Use
|
While 2024-07-29.00-17-00.mp4After having terminated the turbo process with My (completely uneducated) guess after having looked inside the code for TUI (I don't know Rust at all) would be that the Within this cleanup function, it looks like all the things described in my issue would have been resolved:
|
I mentioned this in my original description as well, but another workaround is executing turbo from pnpm with |
What version is pnpm's turbo? |
It's the same version as global. I've tested all 2.x major versions, same thing happens with all of them. |
Verify canary release
Link to code that reproduces this issue
https://github.com/espenja/turbo-mouse-scroll-tui
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Windows
Which canary version will you have in your reproduction?
2.0.9
Describe the Bug
Running
turbo watch dev
on Windows and cancelling the process withctrl+c
does not gracefully shut down the process and causes the terminal to act in weird ways.This happens when running
turbo
from global install (shown in video 1 in additional context).Running
turbo
frompnpm
does not seem to cause this "effect" (shown in video 2 in additional context).What happens after ctrl+c after running global turbo watch dev
Disclaimer: This is reported for 2.0.9 and not the canary release. Discussed this with @Zertsov on Discord and they said to report it anyway.
Tested with
Expected Behavior
Expected behavior: Process exits to previous terminal state without fragments from TUI, and mouse wheel scrolls the terminal buffer/window
Actual behavior: Terminal has lots of fragments from TUI, and mouse wheel acts like arrow up and down and scrolls through terminal command history
To Reproduce
pnpm install -g turbo
pnpm install
turbo watch dev
ctrl+c
Additional context
Screencap of what happens
Failure scenario: Screencap of running turbo as a global install and scrolling with mouse wheel after cancelling process with ctrl+c (clicking image will take you to a YouTube video showing what happens)
Working scenario: Screencap of running turbo from pnpm and scrolling with mouse wheel after cancelling process with ctrl+c (clicking image will take you to a YouTube video showing what happens)
Possibly related/similar bug reported in tmux repository
tmux/tmux#2148
The text was updated successfully, but these errors were encountered: