-
-
Notifications
You must be signed in to change notification settings - Fork 99
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: mason_logger is not working properly when it reaches to the end of terminal #1356
Comments
@felangel Do you have any Idea what is happening and why? I can try to fix it if you can help me |
Probably related to #507 |
I had an investigation on this So I think the problem is related to the save cursor line and the behavior of console it seems when the cursor is at the last line, and we save the cursor position and after that we have some new line (scrolling) the cursor position will stay the same Basically, cursor is not respecting the scrolling. |
Yup haven’t had time to look at how other tools overcome this problem but happy to review any PRs if you get to it first 👍 |
I have some Idea. Will make a PR |
Also noticed this issue with |
@MarkOSullivan94 @payam-zahedi are you still able to reproduce with the latest version of |
I can not reproduce it anymore on the example. but I will try to test it on our product to make sure about it. Can you please give me the link of commit where you fixed it I could not find it. |
Also experiencing this. One workaround I've found is to clear the terminal before calling const clearTerminal = '\x1B[2J\x1B[0;0H';
_logger.info(clearTerminal); |
That would work but I'm not sure it's a good idea to delete parts of the terminal buffer without the users' permission. It might be annoying/undesirable to have important output deleted just because of the choice prompt 🤔 |
Description
When we are using choose options and cursor is in the end of the terminal screen its not working properly.
Tryed on: Windows, Linux, macOS
Steps To Reproduce
Screenshots
20240619_120341.mp4
The text was updated successfully, but these errors were encountered: