Added cursor.c->cursor position management