telnet xxx port
ctrl + ]
telnet > quit
ctrl + w 是清除命令
转自: http://wangyifeng.blog.51cto.com/2144905/398950