cs2016 - Terminal Emulators for many Computer Terminals.
This product includes a number of different terminal emulator packages. The sources are included. Some are relatively simple and some are quite complex. Some address a very specific specification, while others are fairly generalized. There is more here for UNIX and Linux users than anyone else, but some packages also have Windows versions, and of course, there is the source.
More detailed information can be found at
http://www.geruva.com/products/cs2016.html