@ross-technologies/xlib

1.0.1-fix3 • Public • Published

node-xlib

Xlib for Node.JS.

Example

This creates a windows 100x100 pixels at 0, 0 on the screen. The window created is called "Hello, world".

const x11 = require("x11");
const xlib = require("@ross-technologies/xlib");

xlib.createClient((err,client) => {
	if(err) throw err;
	var X = client.display.client;
	var win = X.AllocID();
	X.CreateWindow(
		win,client.display.screen[0].root,
		0,0,100,100,
		0,0,0,0,
		{ eventMask: x11.eventMask.Exposure | x11.eventMask.PointerMotion }
	);
	X.MapWindow(win);
	client.xlib.SetWMName(win,"Hello, world");
});

Readme

Keywords

Package Sidebar

Install

npm i @ross-technologies/xlib

Weekly Downloads

0

Version

1.0.1-fix3

License

Apache-2.0

Unpacked Size

23.9 kB

Total Files

6

Last publish

Collaborators

  • spaceboyross