Class TerminalSize


  • public class TerminalSize
    extends java.lang.Object
    Column and row count for the current terminal.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int cols  
      int rows  
    • Constructor Summary

      Constructors 
      Constructor Description
      TerminalSize​(int rows, int cols)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • rows

        public final int rows
      • cols

        public final int cols
    • Constructor Detail

      • TerminalSize

        public TerminalSize​(int rows,
                            int cols)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object