A library providing Telnet connectivity, ANSI terminal support, and finally UNIX Expect-like scripting. The Telnet support includes option negotiation, and pluggable option handlers.
Sample code recreates the XP telnet command, and also shows automated Expect scripting.