Class ScreenInfoAction

java.lang.Object
com.googlecode.lanterna.input.KeyStroke
com.googlecode.lanterna.input.ScreenInfoAction

public class ScreenInfoAction extends KeyStroke
ScreenInfoAction, a KeyStroke in disguise, this class contains the reported position of the screen cursor.
  • Field Details

  • Constructor Details

    • ScreenInfoAction

      public ScreenInfoAction(TerminalPosition position)
      Constructs a ScreenInfoAction based on a location on the screen
      Parameters:
      position - the TerminalPosition reported from terminal
  • Method Details

    • getPosition

      public TerminalPosition getPosition()
      The location of the mouse cursor when this event was generated.
      Returns:
      Location of the mouse cursor
    • toString

      public String toString()
      Overrides:
      toString in class KeyStroke