position method

({int x, int y}) position()

Returns the current cursor position as (x, y).

Implementation

({int x, int y}) position() => (x: _cur.x, y: _cur.y);