Text-Based Window Manager

The simplest thing is to grab the tarball and check it out for yourself. Alternatively, you can view the source interactively: