mouse_mode implementation on OS X
Merge pull request #548 from Felbo/master

mouse_mode implementation on OS X.