cursor: initialize buffer