Xterm supports an OSC sequence for accessing the clipboard/selection. I don't know whether vim or emacs have support for this though. From http://invisible-island.net/xterm/ctlseqs/ctlseqs.html:
OSC P s ; P t BEL ... P s = 5 2 → Manipulate Selection Data. These controls may be disabled using the allowWindowOps resource. The parameter P t is parsed as P c ; P d The first, P c , may contain any character from the set c p s 0 1 2 3 4 5 6 7 . It is used to construct a list of selection parameters for clipboard, primary, select, or cut buffers 0 through 8 respectively, in the order given. If the parameter is empty, xterm uses s 0 , to specify the configurable primary/clipboard selection and cut buffer 0. The second parameter, P d , gives the selection data. Normally this is a string encoded in base64. The data becomes the new selection, which is then available for pasting by other applications. If the second parameter is a ? , xterm replies to the host with the selection data encoded using the same protocol. 2009/4/22 Fergus <fer...@bonhard.uklinux.net>: > Are you using X? If you are, then you could try including -clipboard as an > option for XWin: > e.g. > run XWin -clipboard -nolisten local -multiwindow 2>nul & > (or however you usually start X up). This will put text selected for > copy-ing into the Windows clipboard. > If you are not using X, then I am sorry, I do not know what to suggest. > Fergus > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/