mirror of
https://github.com/danbulant/node-x11
synced 2026-06-12 03:00:19 +00:00
11 lines
370 B
JavaScript
11 lines
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();
|
|
});
|
|
});
|
|
});
|