Here is my basic telnet class combined to a QPlainTextEdit for having a light weight widget available for further use. Here, it's only a short test project, with the MyQTelnetWidget libs. It's made in C++/Qt4.4.