http://hg.code.sf.net/p/console-devel/code