From 62ef3801051eb977b72cf7d8ee241bf4f4e68318 Mon Sep 17 00:00:00 2001 From: sbosse Date: Mon, 21 Jul 2025 23:04:28 +0200 Subject: [PATCH] Mon 21 Jul 22:43:21 CEST 2025 --- js/x11/examples/smoketest/atoms.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 js/x11/examples/smoketest/atoms.js diff --git a/js/x11/examples/smoketest/atoms.js b/js/x11/examples/smoketest/atoms.js new file mode 100644 index 0000000..d8a77c8 --- /dev/null +++ b/js/x11/examples/smoketest/atoms.js @@ -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(); + }); + }); +});