printing cursor position