x11
Version:
A pure node.js JavaScript client implementing X Window (X11) protocol and extensions.
12 lines (11 loc) • 370 B
JavaScript
var x11 = require('../../lib');
x11.createClient(function(err, display) {
var X = display.client;
var hello = 'Hello, node.js';
X.InternAtom(false, hello, function(err, atomId) {
X.GetAtomName(atomId, function(err, str) {
console.log('Value for atom ' + atomId + ' is \"' + str + '\"');
X.terminate();
});
});
});