read and write to the clipboard when use cygwin