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.
for more information.
Download the current release to start -- the source code should only be required for advanced usage.