microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.02k stars 8.23k forks source link

Extra new line while using Telnet connection #12501

Open Ashirov opened 2 years ago

Ashirov commented 2 years ago

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:

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

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

zadjii-msft commented 2 years ago

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?

Ashirov commented 2 years ago

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

zadjii-msft commented 2 years ago

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

Ashirov commented 2 years ago

Isn't the Telnetbuilt-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.

NigrumTredecim commented 1 year ago

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.

mlazzarotto commented 1 year ago

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

tlsalex commented 6 months ago

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

tlsalex commented 6 months ago

@Ashirov , do you have any workaround?

tlsalex commented 6 months ago

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

TELNET