seanmiddleditch / libtelnet

Simple RFC-complient TELNET implementation as a C library.
http://github.com/seanmiddleditch/libtelnet
Other
329 stars 133 forks source link

Improve util/telnet-proxy, print both raw bytes & ascii code #24

Closed floatinghotpot closed 8 years ago

floatinghotpot commented 8 years ago

@seanmiddleditch PR improved, with your recommended printf("%.*s"), and also print both raw bytes and ascii code. Instead of convert to int, I just convert the raw bytes to unsigned char.