mabe02 / lanterna

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

Creating Window that fill whole screen? #615

Closed javafanboy closed 1 month ago

javafanboy commented 1 month ago

Is it possible to calculate how large I can make a Window to fill the whole horisontal width of my terminal or do I need to do "trial and error"?

mabe02 commented 1 month ago

If you want a full-screen window that fills both horizontal and vertical space, you can set the background pane of the TextGUI to a regular panel and use that instead of a window to add components to. Check FullScreenTextGUITest sample class.

javafanboy commented 1 month ago

Thanbks - will hape a look at that option!