Support copy to/from clipboard on Linux and OSX