Add support for hardware cursors.
Expose the cursor mode setting.