关于TELNET的自动清屏的问题.

csuker 2005-08-03 10:31:39
使用超级终端时,登录到路由器上再TELNET到其他交换机,会自己清屏,并从左上角开始提示输口令和密码.
我想用VB+winsock的方式通过连接23端口实现,进路由器时可以作到,但从路由器登交换机时原来清屏的动作没发生,而是一行乱码,然后就死机了.不能继续下去.
估计是有一些TELNET协议的代码在里面,问有什么好的办法解决.
...全文
421 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
TechnoFantasy 2005-08-03
  • 打赏
  • 举报
回复
http://support.microsoft.com/?kbid=231866

里面介绍了telnet协议,对于清屏是这么写的:
The following further control codes are optional but should have the indicated defined effect on the display.

Name Code Decimal Value Function
BELL BEL 7 Produces an audible or visible signal (which does NOT move the print head.
Back Space BS 8 Moves the print head one character position towards the left margin. (On a printing device, this mechanism was commonly used to form composite characters by printing two basic characters on top of each other.)
Horizontal Tab HT 9 Moves the printer to the next horizontal tab stop. It remains unspecified how either party determines or establishes where such tab stops are located.
Vertical Tab VT 11 Moves the printer to the next vertical tab stop. It remains unspecified how either party determines or establishes where such tab stops are located.
Form Feed FF 12 Moves the printer to the top of the next page, keeping the same horizontal position. (On visual displays, this commonly clears the screen and moves the cursor to the top left corner.)

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧