Renamed textual Cursor class to TextCursor to avoid duplicate class name