Mon 21 Jul 22:43:21 CEST 2025
This commit is contained in:
parent
e187e6ee0e
commit
7109d000df
11
js/x11/core/examples/smoketest/atoms.js
Normal file
11
js/x11/core/examples/smoketest/atoms.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user