Skip to content

OCGV: Add ability to minimize UI #116

@tig

Description

@tig

The window border, filter box, and status bar use valuable screen real estate. I'd like to have an option of not having it visible.

I considered having parameters for all of them:

  • -NoFrame
  • -NoFilter
  • -NoStatusBar

But that seems overkill. Instead, just:

  • -MinUI

I just pushed a change to Terminal.Gui that will enable hiding the statusbar. Then all that's needed is to change the logic that creates the Window to:

        private Window AddTopLevelWindow()
        {
            // Creates the top-level window to show
            var win = new Window(_applicationData.Title)
            {
                X = _applicationData.MinUi ? -1 : 0,
                Y = _applicationData.MinUi ? -1 : 0,
                // By using Dim.Fill(), it will automatically resize without manual intervention
                Width = Dim.Fill(_applicationData.MinUi ? -1 : 0),
                Height = Dim.Fill(_applicationData.MinUi ? -1 : 1)
            };

            Application.Top.Add(win);
            return win;
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module-ConsoleGuiToolsThis issue is about Microsoft.PowerShell.ConsoleGuiToolsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions