Remove dumb calque from xv6 (opening "console")
Wrap everything in a module, leave main() outside
Extract sh::test