Additional modifications made from Jon Sagara's fork of Tom Janssens's minimalistic telnet library which can be found here. Setter and getter methods were added along with methods for logging into devices that optionally have a Username: prompt or require pressing a key before entering the password (such as on HP switches).
Slight modifications to Tom Janssens's excellent minimalistic telnet library, which you can find at The Code Project.
This code retains the original's license, which is The Code Project Open License.