java.lang.Object
com.github.sttk.linebreak.Term
Term
is the class that provides static methods to get the
informations about the terminal.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Size
is the record class which represents a terminzal size holding its column count and row count. -
Method Summary
-
Method Details
-
getCols
public static int getCols()Returns the column count of the current terminal. The column count is the count of ASCII printable characters. If it failed to get the count, this function returns the fixed number: 80.- Returns:
- Terminal column count.
-
getSize
Gets the size of the current terminal.- Returns:
- A
Term.Size
object holding the current terminal size.
-