This is the mail archive of the
cygwin
mailing list for the Cygwin project.
clipboard details
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin at cygwin dot com
- Date: Sun, 25 Mar 2012 00:28:15 +0100
- Subject: clipboard details
2 comments about accessing the Windows clipboard:
* Does the Windows clipboard maintain a timestamp? If so, it would be
useful to propagate it to /dev/clipboard as its virtual last
modification time.
* The tools getclip and putclip do not handle non-ASCII character
properly, while /dev/clipboard does.
So I'd suggest to replace them with a wrapper:
#! /bin/sh
case "`basename $0`" in
get*) redir="<";;
put*) redir=">";;
*) if [ -t 0 ]
then redir="<"
else redir=">"
fi;;
esac
eval cat $redir /dev/clipboard
----------------------------------
Thomas
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple