Permalink
Browse files

added a doc repl

Automatically loads XCB under the variable x
This saves some time from doing this manually.
  • Loading branch information...
CrypticSwarm committed Sep 2, 2011
1 parent 709ea5b commit 43053c4db26f58708bb3882a2ecc5638d05c2818
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')

0 comments on commit 43053c4

Please sign in to comment.