Render cursor and selection