Recently learned SSH protocol, for convenience, first implement a set of Telnet service, in order to apply SSH later.
Start with the Telnet client first. Here is a link to the RFC documentation: Http://oss.org.cn/man/develop/rfc/RFC854.txt. Basically, the introduction of Telnet is pretty much the same. But there are too few introductions about NVT, and no standard is given. Just like the keyboard's direction key ASCII mapping NVT don't know what it is. I haven't found any information on the internet for a long time. Finally, the NVT ASCII value of the arrow keys and some other keys is known by the Telnet software that grabs the package authority by itself. In that case, Getch () received a value of decimal: 224 72, and the conversion to ASCII is a decimal (/033[a), which is the/033[b. Because I did not find the other standards, I only dealt with the direction and the backspace bar some of the necessary nvtascii.
This article is from the "Wchrt" blog, make sure to keep this source http://wchrt.blog.51cto.com/8472636/1627262
Telnet Programming Client Server