getCursorRow()

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

public int getCursorRow()