Cursor management library