-
Notifications
You must be signed in to change notification settings - Fork 219
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
Issue With Resizing Command Prompt With Status Bar #939
Comments
@philiprichens , after a resize, you need to redraw the terminal, see #902. |
To follow the advice in #902, I would need to handle the WINCH when LineReaderImpl is in readLine waiting for character input. But in this situation LineReaderImpl has replaced my handler with its own. Is there a way I can respond to WINCH even when waiting for character input? Even a clear screen following a resize would improve things. |
Playing with this some more, I can see that it is the redrawing of the status bar that is making a mess of the terminal window, and jline is at least in control of that. I can improve things somewhat if I override handleSignal like this:-
However, there is then a problem with the prompt disappearing that I am unsure how to resolve. Perhaps one of the jline contributors will know what to do to mend that? This is at least enough to make me think it should be possible to resolve this issue successfully within jline. It is such a shame at the moment, because it does makes the status bar rather unusable. |
@philiprichens could you give a try to the #969 PR to see if that improve things ? It's not perfect, but it fixes a bunch of problems I think. |
I've attached a short test program which shows the issue when using 3.25.1. When the status bar is visible, resizing a Command Prompt on Windows causes the status bar to be repeated across the window.
Here's a screen shot showing the result.
The text was updated successfully, but these errors were encountered: