if your regular Telnet prompt includes a $ (e.g. marc$) type  export TERM=vt100  If it is a % prompt, you are probably using the C shell and need to type  setenv TERM vt100  This will change your terminal type for the duration of the current job session. To alter it within your start-up file, so that it applies to every session:  from the $ prompt type  pico .bash_profile  or from the % prompt type  pico .login  use the arrow keys to go to the part that includes the comment  # Sort out the terminal.  and overtype 'unknown' with vt100 (no quotes)  press the ctrl key and type x to exit pico  when prompted for the filename press return  : 1. First I tried adding Wait ( 5 ), but it not worked.  : 2. After that I found default terminal settings using your command  : "printenv | grep TERM" result is "TERM=ansi"  : 3. After that I nchanged my script like this  : Dim( sFileList, string )  : TelnetConfig( "terminal", "show" )  : TelnetOpen( "10.40.25.11", "marc", "marc001" )  : Wait( 5 )  : TelnetSend("set term=vt100")  : TelnetSend( "ls -ltr" )  : TelnetReceive( sFileList )  : TelnetClose( )  : MessageBox( sFileList )  : 4. But it not worked. I received error Message like this  : set term=vt100  : Type set term=vt100 unknown  : TERM=(unknown) ls -ltr  : Type ls -ltr unknown  : TERM=(unknown)  : Continue?   
   |