Mercury provides a means of communicating data or strings between GAUSS and the Window clipboard. For example, a section of a spreadsheet could be selected and copied to the clipboard in the usual fashion. This data could then be pasted directly into a GAUSS matrix (x) using the command:
ge.ClipboardPaste("x");
Similarly, a GAUSS matrix, x, could be copied to the clipboard using the command:
ge.ClipboardCopy("x");
x could then be pasted into a spreadsheet or word-processor. For the former, if x were an n by k matrix, then the spreadsheet array would also be n rows by k column. For the word-processor, the matrix has the form of tab delineated elements, again with n rows and k columns.
Mercury for GAUSS permits direct interaction between GAUSS and the clipboard:
library mercury;
x = rndu(3,2);
copy(x);copies the GAUSS matrix, x, to the clipboard, and
z = paste;
creates the matrix or string z based on the contents of the clipboard.