Extra new line while using Telnet connection #16788

Open
opened 2026-01-31 05:22:47 +00:00 by claunia · 9 comments
Owner

Originally created by @Ashirov on GitHub (Feb 16, 2022).

Windows Terminal version

1.11.34.71.0

Windows build number

10.0.19043.1526

Other Software

VMware® Workstation 16 Pro (version: 16.1.0 build-17198959)
EVE-NG Community edition (version: 2.0.3-112)

Steps to reproduce

I use WT for network labs. I connect to nodes with a Telnet connection. And while I am inside the CLI of nodes and doing some stuff there. Exactly at this point when I press the Enter key to go to the new line. It gives me two new lines. It feels like I have pressed the key twice.
Instead of WT when I use Solar-Putty this does not happen. Whereas I prefer to use WT and want it to work properly.

Expected Behavior

It should give only one new line each time I press to the enter key

Actual Behavior

It doubles the new line. Which is irritating.

In case you need more detail, the following virtual images are from vendors such as:

  • Juniper: vMX Router:

115066102-1a00ab80-9f00-11eb-90f5-c97000eb0a6a

  • Cisco: IOS Router:

115066112-1ff68c80-9f00-11eb-9486-6c0bb91a3617

Originally created by @Ashirov on GitHub (Feb 16, 2022). ### Windows Terminal version 1.11.34.71.0 ### Windows build number 10.0.19043.1526 ### Other Software VMware® Workstation 16 Pro (version: 16.1.0 build-17198959) EVE-NG Community edition (version: 2.0.3-112) ### Steps to reproduce I use WT for network labs. I connect to nodes with a **Telnet** connection. And while I am inside the **CLI** of nodes and doing some stuff there. Exactly at this point when I press the **Enter key** to go to the new line. It gives me two new lines. It feels like I have pressed the key twice. Instead of WT when I use _Solar-Putty_ this does not happen. Whereas I prefer to use WT and want it to work properly. ### Expected Behavior It should give only one new line each time I press to the enter key ### Actual Behavior It doubles the new line. Which is irritating. In case you need more detail, the following virtual images are from vendors such as: - Juniper: vMX Router: ![115066102-1a00ab80-9f00-11eb-90f5-c97000eb0a6a](https://user-images.githubusercontent.com/46714728/154232162-493ce4e7-b312-44c4-8b36-c2f6864c435a.png) - Cisco: IOS Router: ![115066112-1ff68c80-9f00-11eb-9486-6c0bb91a3617](https://user-images.githubusercontent.com/46714728/154232195-6ec5681d-42cb-42e3-971e-f6013b3984ce.png)
claunia added the Area-OutputIssue-BugArea-VTProduct-TerminalPriority-2 labels 2026-01-31 05:22:48 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Feb 16, 2022):

how the devil did we not see your first post...? That apparently never got into the triage queue. Sorry about that! Which telnet client are you using?

@zadjii-msft commented on GitHub (Feb 16, 2022): how the devil did we not see your first post...? That apparently never got into the triage queue. Sorry about that! Which telnet client are you using?
Author
Owner

@Ashirov commented on GitHub (Feb 16, 2022):

I use SolarPuTTY for its multi-tab feature and Windows Terminal

@Ashirov commented on GitHub (Feb 16, 2022): I use `SolarPuTTY` for its multi-tab feature and `Windows Terminal`
Author
Owner

@zadjii-msft commented on GitHub (Feb 16, 2022):

Okay, where'd you install telnet.exe from? Did that ship with SolarPuTTY or did you get it from somewhere else?

@zadjii-msft commented on GitHub (Feb 16, 2022): Okay, where'd you install `telnet.exe` from? Did that ship with `SolarPuTTY` or did you get it from somewhere else?
Author
Owner

@Ashirov commented on GitHub (Feb 17, 2022):

Isn't the Telnet built-in Microsoft Windows Feature? As I know it is the default Microsoft Telnet Client. If not then SolarPuTTY is based on the PuTTY emulator, so perhaps this is where it shipped from.

@Ashirov commented on GitHub (Feb 17, 2022): Isn't the `Telnet `built-in Microsoft Windows Feature? As I know it is the default `Microsoft Telnet Client`. If not then `SolarPuTTY` is based on the `PuTTY` emulator, so perhaps this is where it shipped from.
Author
Owner

@NigrumTredecim commented on GitHub (Jan 16, 2023):

Workaround/fix:
Host: telnetd on Terminal IDE app by SpartacusRex
Client: PuTTY telnet
Fix: open PuTTY settings > Connection > Telnet > remove checkmark from box "Return key sends Telnet New Line instead of ^M"

So it probably has to do something with what character gets send as a carriage return.

@NigrumTredecim commented on GitHub (Jan 16, 2023): Workaround/fix: Host: telnetd on Terminal IDE app by SpartacusRex Client: PuTTY telnet Fix: open PuTTY settings > Connection > Telnet > remove checkmark from box "Return key sends Telnet New Line instead of ^M" So it probably has to do something with what character gets send as a carriage return.
Author
Owner

@mlazzarotto commented on GitHub (May 25, 2023):

Hi 👋
same issue here. I use telnet for my GNS3 lab.
In my case, this is the telnet I use:

Name            : telnet.exe
CommandType     : Application
Definition      : C:\WINDOWS\system32\telnet.exe
Extension       : .exe
Path            : C:\WINDOWS\system32\telnet.exe
FileVersionInfo : File:             C:\WINDOWS\system32\telnet.exe
                  InternalName:     telnet.exe
                  OriginalFilename: telnetc.exe.mui
                  FileVersion:      10.0.22621.1554 (WinBuild.160101.0800)
                  FileDescription:  Microsoft Telnet Client
                  Product:          Microsoft® Windows® Operating System
                  ProductVersion:   10.0.22621.1554
                  Debug:            False
                  Patched:          False
                  PreRelease:       False
                  PrivateBuild:     False
                  SpecialBuild:     False
                  Language:         English (United States)

EDIT: I used this command to obtain the output above: Get-Command telnet.exe | Format-List

@mlazzarotto commented on GitHub (May 25, 2023): Hi 👋 same issue here. I use telnet for my GNS3 lab. In my case, this is the telnet I use: ``` Name : telnet.exe CommandType : Application Definition : C:\WINDOWS\system32\telnet.exe Extension : .exe Path : C:\WINDOWS\system32\telnet.exe FileVersionInfo : File: C:\WINDOWS\system32\telnet.exe InternalName: telnet.exe OriginalFilename: telnetc.exe.mui FileVersion: 10.0.22621.1554 (WinBuild.160101.0800) FileDescription: Microsoft Telnet Client Product: Microsoft® Windows® Operating System ProductVersion: 10.0.22621.1554 Debug: False Patched: False PreRelease: False PrivateBuild: False SpecialBuild: False Language: English (United States) ``` EDIT: I used this command to obtain the output above: `Get-Command telnet.exe | Format-List`
Author
Owner

@tlsalex commented on GitHub (Mar 6, 2024):

I also got this same problem, anyone can help on this ?

@tlsalex commented on GitHub (Mar 6, 2024): I also got this same problem, anyone can help on this ?
Author
Owner

@tlsalex commented on GitHub (Mar 6, 2024):

@Ashirov , do you have any workaround?

@tlsalex commented on GitHub (Mar 6, 2024): @Ashirov , do you have any workaround?
Author
Owner

@tlsalex commented on GitHub (Mar 6, 2024):

Change the value of CRLF from 1 to 0 in registry works well for me.

TELNET

@tlsalex commented on GitHub (Mar 6, 2024): Change the value of CRLF from 1 to 0 in registry works well for me. ![TELNET](https://github.com/microsoft/terminal/assets/36788337/d8030534-f3fa-4a11-8369-b4e7a184e9bf)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16788