rlock is a very basic screen lock program for plan9. The idea was to use the screnblank feature of devdraw to actually lock the screen rather than just blank it. This can be done quite easily by some small changes to devdraw.c, which include adding a new message 'B' to draw(3).
Since plan9 is mouse driven for a effective screen lock program you also need to disable the mouse buttons. A simple patch to devmouse.c defines a new message "buttonlock" to take care of this.
Finally there is a user space program: rlock, to ask for the password, and send the messages to devdraw and devmouse.
this 4th ed. version of rlock has been cleaned up, and now uses BGLONG() and BPLONG() for the messages.
patch to devmouse.c
devdraw.patch This really should use BGLONG() and BPLONG() for the messages.
patch to devmouse.c