-
Notifications
You must be signed in to change notification settings - Fork 695
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
StatusBar disappears on resize (smaller) #357
Labels
Comments
@tig Now I am noticing that the vertical frame is not being well designed in your video. It must be a limitation of PowerShell. |
This seems to work: public StatusBar(StatusItem [] items) : base()
{
X = 0;
Y = Application.Driver.Rows - 1; // TODO: using internals of Application
Width = Dim.Fill ();
Height = 1;
Items = items;
CanFocus = false;
ColorScheme = Colors.Menu;
Driver.SetTerminalResized (new Action(() => {
Y = Driver.Rows - 1;
Redraw (Frame);
}));
} |
This was referenced Apr 15, 2020
Merged
Still does not work in Windows Terminal, cmd.exe, or ConEmu. |
Because WindowsDriver don't trigger the buffer event changed on the vertical shrink resizing, there is no way to caught that to resize the buffer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Loving the new
StatusBar
.However, on-resize, if the console is made smaller (not if made bigger), it disappears.
The text was updated successfully, but these errors were encountered: