I spent a couple hours this afternoon reading rio source and hacking it to do virtual desktops. /n/sources/contrib/john/rio-virtual.tgz contains the files from /sys/src/cmd/rio with my changes made. At this time, there is no support for specifying the number of virtuals, because I'm lazy--you get six and you will ENJOY IT.
Let me know if you try it and find bugs. I don't really give a damn if you think this is Against The Plan 9 Way. Personally, the exercise gave me a better appreciation for the simplicity of Plan 9 software--I was able to take a piece of software I'd never looked at before, read the code a bit, and put in some new functionality within an hour or two. John
