How to copy text from the MacOS Terminal to the clipboard