Looks like JavaScript, feels like Ruby, and it is a script language fitting in C programmers.
This project is maintained by Kray-G
This library is to read a text from clipboard and to write a text to clipboard. The basic usage is below.
var cb = new Clipboard();
cb.write(str);
var r = cb.read();
Disabled a spec test because it will be failed on Github Action with the message of
Can't open display: (null)
.
var cb = new Clipboard();
cb.write("This is a first message.");
var r = cb.read();
System.println("write done - ", r);
cb.write("This message was written by other process.");
write done - This is a first message.
var cb = new Clipboard();
var r = cb.read();
System.println("read - ", r);
read - This message was written by other process.