Class CursorLocation

java.lang.Object
org.aesh.readline.cursor.CursorLocation

public class CursorLocation extends Object
Represents the row and column position of the cursor in the terminal.
Author:
jdenise@redhat.com
  • Constructor Details

    • CursorLocation

      public CursorLocation(int row, int column)
      Creates a new cursor location with the specified row and column.
      Parameters:
      row - the row position of the cursor (0-indexed)
      column - the column position of the cursor (0-indexed)
  • Method Details

    • getColumn

      public int getColumn()
      Returns the column position of the cursor.
      Returns:
      the column position (0-indexed)
    • getRow

      public int getRow()
      Returns the row position of the cursor.
      Returns:
      the row position (0-indexed)