osx: Handle copy/paste in terminal display