mirror of
https://github.com/danbulant/node-x11
synced 2026-05-22 22:09:14 +00:00
13 lines
360 B
JavaScript
13 lines
360 B
JavaScript
var x11 = require('../lib/x11');
|
|
|
|
var xclient = x11.createClient();
|
|
|
|
xclient.on('connect', function(display) {
|
|
var X = this;
|
|
var hello = 'Hello, node.js';
|
|
X.InternAtom(false, hello, function(atomId) {
|
|
X.GetAtomName(atomId, function(str) {
|
|
console.log('Value for atom ' + atomId + ' is \"' + str + '\"');
|
|
});
|
|
});
|
|
});
|