clipboard function

Write to and read from the clipboard