update method

  1. @override
void update(
  1. SneathCoordinate? cursor
)
override

Sets the cursor to a specific coordinate.

Coordinates are measured from the top left of the screen, and are zero-based.

Implementation

@override
void update(
  final SneathCoordinate? cursor,
) {
  if (cursor != null) {
    terminal.set_cursor_position(cursor.col, cursor.row);
  }
}