node-x11/README.md

1 KiB

About

X11 protocol client for node.js

status

stage 2) ( see roadmap.txt ) next todo: dispatch replies and errors, decode all evnt types

example

var X = require('x11').createClient();
X.on('connect', function(display) {
    var root = display.screen[0].root;
    var wid = X.AllocID();
    X.CreateWindow(wid, root, 10, 10, 400, 300, 1, 1, 0, { backgroundPixel: 0, eventMask: 0x00000040 });
    X.MapWindow(wid);
});

Protocol documentation

Other implementations