Skip to content

Commit c4ae891

Browse files
Merge pull request #1 from LiveGTech/add-xquerykeymap
Add `XQueryKeymap` command
2 parents b233841 + 60067a2 commit c4ae891

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

examples/smoketest/querykeymap.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var x11 = require('../../lib');
2+
3+
x11.createClient(function(err, display) {
4+
var X = display.client;
5+
6+
X.QueryKeymap(function query(err, keys) {
7+
console.log(keys);
8+
9+
X.QueryKeymap(query);
10+
});
11+
});

lib/corereqs.js

+7
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,13 @@ var templates = {
646646
}
647647
],
648648

649+
QueryKeymap: [
650+
['CxS', [44, 1] ],
651+
function(buf) {
652+
return buf;
653+
}
654+
],
655+
649656
TranslateCoordinates: [
650657
function(srcWid, dstWid, srcX, srcY) {
651658
return [ 'CxSLLSS', [ 40, 4, srcWid, dstWid, srcX, srcY ] ];

0 commit comments

Comments
 (0)