Interface UnixTerminalSizeQuerier

All Known Implementing Classes:
FixedTerminalSizeProvider

public interface UnixTerminalSizeQuerier
This class allows you to override by what means Lanterna detects the size of the terminal. You can implement this interface and pass it to the UnixTerminal constructor in order to use it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Checks what the size of the terminal is, measured in number of rows and columns.
  • Method Details

    • queryTerminalSize

      TerminalSize queryTerminalSize()
      Checks what the size of the terminal is, measured in number of rows and columns. The implementer of this interface is expected to know which terminal we are querying for and have all it needs to figure out the size. One way of implementing this could be to read of an external value or variable or calling IPCs or just return a static size at all times.
      Returns:
      Size of the terminal at this point in time