getCursorPosition()

Method. Gets the terminal window display row and column in which the host cursor is currently located.

public Dimension getCursorPosition()