mirror of
https://github.com/danbulant/node-x11
synced 2026-06-17 05:31:05 +00:00
14 lines
341 B
JavaScript
14 lines
341 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) {
|
|
console.log(atomId);
|
|
});
|
|
X.InternAtom(true, 'test', function(atomId) {
|
|
console.log(atomId);
|
|
});
|
|
});
|