pbcopy emulation