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
Interactive mode reprints everything on keydown #1361
Comments
Hi, thanks for reporting. This may be a dependency bug, or it may be specific to your terminal environment. I haven't seen it before. If you can provide the following information we can at least narrow down the cause a bit.
|
Ah, I'm forget to provide these information to you.
I just run for the 3. and 4. commands, it all work fine~ Thanks for your notice~~ |
Thanks. That's very strange. I'm on OSX iTerm2 as well and I don't experience the issue. Since the ncu-test-prompts commands work fine for you, there must be something different about the specific prompt launched in ncu. I'll take a look at your terminal settings when I have some time, though it will be hard for me to do much if I cannot reproduce it on my machine. |
@raineorshine I'm experiencing the exact same thing, same OS same Terminal, same results for question 3 and 4. I'm almost certain this wasn't happening a few weeks ago. 🤔 |
If you need any help debugging please do let me know. Keen to see this fixed as I ❤️ this package. |
Thanks. It would be great to get some help. It's unlikely I can do much without being able to reproduce it. If this is indeed a regression, you could try to find the last version that worked. Should be fairly quick with bisecting. Identifying an exact version number or commit where the bug was introduced would be super helpful. FYI npm-check-updates uses prompts for interactive mode, with some small changes through a fork. |
So weirdly enough, I'm not having the issue anymore. Which on the one hand makes me real happy because I can use the package again, but on the other is bugging me because I have no clue why 😅 |
I hate when that happens 😆 |
npm-check-updates
node >= 14.14
Current Behavior
When I running
ncu
in interactive mode, and use keyboard up/down to (un)select the package I wanted to update, here comes the strange issue in the screenshot below.Every time I triggered the keyboard, the output will reprint again. You can see the above and below section are the same content, but only change the arrow of current select.
This makes me unable to use the interactive mode normally.
Expected Behavior
I expect the interactive mode can select package normally, and it won't reprint every package when I trigger the up/down keyboard
The text was updated successfully, but these errors were encountered: