Try tm->cmd(‘export TERM=vt100’)

 

-----邮件原件-----
发件人: Andrew Timberlake-Newell [mailto:[EMAIL PROTECTED]
发送时间: 2003年7月19日 4:12
收件人: [EMAIL PROTECTED]; [EMAIL PROTECTED]
主题: [Perl-unix-users] Net::Telnet and Term Type

 

I need to set the Telnet terminal type option for a telnet connection using Net::Telnet.  Does anyone know how to do that?

 

My script is connecting to the system and processing most commands just fine.  (So I know it is NOT related to my prompt setting.)  The problem comes when I try to use a program on the server that is looking to see ‘vt100’ in the Term Type, and it seems to be seeing ‘tvi925’ instead.  I’ve tried looking through the docs and Telnet.pm, but I’m not sure how to go about using TELOPT_TTYPE, or even if that is what I need to use.

Reply via email to