No description
Find a file
2011-06-06 22:00:14 -07:00
lib/x11 initial library setup 2011-06-07 14:37:49 +10:00
README.md Edited README.md via GitHub 2011-06-06 22:00:14 -07:00

About

X11 protocol client for node.js

example

var x = require('x11');

var s = x.createConnection().defaultScreen();
var wnd = s.createWindow(10, 10, 100, 100); // RootWindow as parent by default
wnd.selectInput(x.ExposureMask | x.KeyPressMask); // optional, all input by default
wnd
  .on('expose', function(exposeevent)
  {
      this.drawString(10, 50, 'Hello');
  })
  .on('keypress', function(keyevent) 
  {
      process.exit(0);
  });

Protocol documentation

Other implementations