initial version for libtelnet 0.21