check out /sys/src/games. the drawing functions you need are mostly in graphics(2). you can use either threads(2) or event(2) for concurency. the event library is for simple programs; threads are pretty powerful but you'll need to do more programming before you get something working.
fshalt will shutdown your filesystems. then reboot via vulcan nerve pinch or power switch. - erik
