Here is a comparison of different render engines/techniques:
Using just a toon shader:
Manually defining a vector to create a sharp gradient/cartoon kind of shading:
Light sources do not affect the shader unfortunately, you must manually define the vector with the mapping node.
The spots are basically the same, except very dark gray (not quite black).
Other scene settings:
Single sun lamp with a light gray shadow, AO enabled in World settings.
An effect very much like the second cycles example can be achieved with the Emit value set to 1. You can also get finer control over the colors/intensity of the toon shader by enabling ramp:
Note that this one uses light sources properly, so it can be used in animation.
When you have GLSL enabled, the openGL view will actually render the BI toon shading settings in real time. You can even render shadows:
To make the sky transparent when rendering openGL renders, set the Alpha to Transparent in Render settings > OpenGL (render settings > Shading when BI is the current render engine).