Package org.strassburger.tui4j.terminal
Class TerminalSize
java.lang.Object
org.strassburger.tui4j.terminal.TerminalSize
Utility class to get the terminal size.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents the size of a terminal in columns and rows. -
Method Summary
Modifier and TypeMethodDescriptionstatic TerminalSize.Sizeget()Attempts to get the terminal size using multiple methods.
Falls back to a default size of 80x24 if all methods fail.
-
Method Details
-
get
Attempts to get the terminal size using multiple methods.
Falls back to a default size of 80x24 if all methods fail.- Returns:
- the terminal Size
-