mabe02 / lanterna

Java library for creating text-based GUIs
GNU Lesser General Public License v3.0
2.23k stars 243 forks source link

`FULL_SCREEN` Window hint doesn't work on MacOS #530

Open mieubrisse opened 3 years ago

mieubrisse commented 3 years ago

When modifying my Window hints like so:

        window.setHints(Set.of(Window.Hint.NO_DECORATIONS, Window.Hint.FULL_SCREEN));

On launch I get a startup window that has no decorations and is completely blank:

Screen Shot 2021-01-02 at 5 09 37 PM

As soon as I move the arrow keys, the content appears (still not in fullscreen):

Screen Shot 2021-01-02 at 5 10 33 PM

Removing just the FULL_SCREEN hint causes content to appear immediately upon startup (though of course isn't full screen).

Due to https://github.com/mabe02/lanterna/issues/504 , switching to headless mode isn't a viable workaround (maybe related?)

mabe02 commented 3 years ago

Seems like there is a missing refresh. Do you have a simple test case to reproduce it? The full-screen appears to be working to me (keep in mind it full-screens the text UI window in the terminal, it doesn't full-screen the terminal window). If you want to use the TextGUI API in full-screen mode, you don't actually need to create a window with the full-screen hint, check out FullScreenTextGUITest for an example of how to add an interactable component to the background panel.