PTC MKS Toolkit Knowledge Base

Section:IO
Product:MKS Toolkit (All)
Version:8.7
OS:All
Keywords:microsoft telnet client
Category:Connectivity/Utilities/Knowledge Base


Why are two new line characters showing when using the Microsoft Telnet Client and the MKS Telnet Server?


There is a bug in the Microsoft Telnet client beginning with Windows XP SP1 and Windows 2003 SP1. The problem is now that CRLF mode is set to send CR and LF by default when return is keyed where as before the default was to send just a CR.

To work around the problem start telnet without any parameters and key ‘unset crlf’. This will permanently remove the sending of the LF for this and future telnet sessions. Now when a return is keyed only CR is sent. If a reset is ever needed just run ‘set crlf’ to put it back the way it was.

An example telnet session is displayed below. Please note that the text following "Microsoft Telnet>" is where the user has entered in commands.


Welcome to Microsoft Telnet Client

Escape Character is 'CTRL+]'

Microsoft Telnet> display
Escape Character is 'CTRL+]'
Will auth(NTLM Authentication)
Local echo off
New line mode - Causes return key to send CR & LF
Current mode: Console
Will term type
Preferred term type is ANSI
Microsoft Telnet> unset crlf
Line feed mode - Causes return key to send CR
Microsoft Telnet> display
Escape Character is 'CTRL+]'
Will auth(NTLM Authentication)
Local echo off
Line feed mode - Causes return key to send CR
Current mode: Console
Will term type
Preferred term type is ANSI
Microsoft Telnet>