Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a doc repl

Automatically loads XCB under the variable x
This saves some time from doing this manually.
  • Loading branch information...
commit 43053c4db26f58708bb3882a2ecc5638d05c2818 1 parent 709ea5b
@CrypticSwarm authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 doc.js
View
9 doc.js
@@ -0,0 +1,9 @@
+var repl = require('repl')
+ , x = require('./build/default/xcb')
+ , xcbhelp = repl.start('XCB > ')
+
+xcbhelp.context.x = x
+
+//In the REPL just type in any X Request, Struct, or Event name to get more information.
+//Example:
+//x.help('CreateGC')
Please sign in to comment.
Something went wrong with that request. Please try again.