Implement cursor orientation.