-
Notifications
You must be signed in to change notification settings - Fork 164
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
Revert resize handling removal #478
Conversation
This reverts commit 59f7144.
i just check this out and built it and have the animated clock. I'm so confused. |
Sorry my bad, I got the logic mentally backwards. |
I've tested this, and i solves the right prompt problem. I vote get it in, and progress from here. https://github.com/nushell/reedline/blob/main/src/painting/painter.rs#L383 These probably needs attention :) I did try look into it. Logging/tracing would be useful I think @sholderbach, @fdncred would that be desired i could cook somthing up? |
@dbuch oh, please do look at this. I'd love to land this but it's really trading one problem for another. however, if I knew you planned to work on the remaining issues I personally would feel much more comfortable landing this one with the hopes that you could cook something up to make it better. note, I have no fantasy that you can or would fix everything but we generally approve iterative approaches to solving "hard" issues like this. So, yes, please cook something up. :) |
@fdncred Okay, I'll try. I still think this piece should be merged, do you know what the trade are? Next step, for me atleast, would be to implement some logging preferably to some file. |
@dbuch I think if you run this PR and resize left and right and diagonally left and right, you'll see artifacts. Now if you do the same thing before this PR, there are probably less artifacts with resizing. However the tradeoff with before this PR is that sometimes you start nu and you get a prompt at the top of the screen, hit enter and all of a sudden the prompt is in the center of the screen. |
@fdncred you are right! I use kitty, and because (i think) i use HDPI and kitty resizes late i get that prompt in the middle. But only at the beginning. |
A fresh set of eyes looking at this problem is absolutely welcome! @dbuch In my experimentation the resizing artifacts were especially pronounced when there was content close to the bottom of the screen + wrapping of text. Also the choice of terminal emulator had some influence on the severity of the visual artifacts. While Having optional tracing to study what is happening would be great, especially maybe with timing information to tweak how our event loop reacts to those things ( Lines 40 to 50 in 7d721a1
Lines 484 to 499 in 7d721a1
My memory is failing me what problem I was trying to observe but in one case I couldn't reproduce a certain behavior while launching reedline from lldb .
|
PR has no direct connection to current problems or codebase. Closing despite some interesting discussion |
Attempt to test if bringing the basic resize behavior back will improve the situation in some terminals that implicitly resize on startup
Tries to fix #477