fix cursor support for mac os x term