ssh newline problem #11417

Closed
opened 2026-01-31 02:47:05 +00:00 by claunia · 4 comments
Owner

Originally created by @CatCatCatDog on GitHub (Nov 15, 2020).

Windows terminal 1.4.3141.0
Windows 10 64bit 2004 (OS Build 19041.630)

What am i wrong? newline not work, If I open file and out from file.
only bug occur, on rmote Linux. not WSL

newline_problem

Originally created by @CatCatCatDog on GitHub (Nov 15, 2020). Windows terminal 1.4.3141.0 Windows 10 64bit 2004 (OS Build 19041.630) What am i wrong? newline not work, If I open file and out from file. only bug occur, on rmote Linux. not WSL ![newline_problem](https://user-images.githubusercontent.com/23658192/99179455-481b6d00-2761-11eb-9aca-b803d46f9119.png)
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 02:47:05 +00:00
Author
Owner

@jdebp commented on GitHub (Nov 15, 2020):

You should show the result of running the stty -a command on the remote system at this point. That's simple enough that you should be able to type it in without it being echoed back to you.

If it shows that the line discipline has local echo turned off with -echo, as it almost certainly will, then this is not a problem with Windows Terminal in any way and Windows Terminal is working as designed. This local echo mechanism is implemented in the line discipline in the kernel of the operating system on the remote host, not in Windows Terminal on your local machine.

People have been getting their terminals into this state by turning local echo off in their line disciplines, on Unix operating systems, since before Windows NT even existed. This and the "staircase effect" are two of the situations that are well-known and highly recognizable to long-time Unix and Linux-based operating system terminal users. You need to look to what you are doing on the remote host to its terminal line discipline, which isn't within the purview of a Windows Terminal bug report.

@jdebp commented on GitHub (Nov 15, 2020): You should show the result of running the `stty -a` command on the remote system at this point. That's simple enough that you should be able to type it in without it being echoed back to you. If it shows that the line discipline has local echo turned off with `-echo`, as it almost certainly will, then this is _not a problem with Windows Terminal_ in any way and Windows Terminal is working as designed. This local echo mechanism is implemented in the line discipline in the kernel of the operating system on the remote host, _not_ in Windows Terminal on your local machine. People have been getting their terminals into this state by turning local echo off in their line disciplines, on Unix operating systems, since before Windows NT even existed. This and the "staircase effect" are two of the situations that are well-known and highly recognizable to long-time Unix and Linux-based operating system terminal users. You need to look to what you are doing _on the remote host_ to its terminal line discipline, which isn't within the purview of a Windows Terminal bug report.
Author
Owner

@DHowett commented on GitHub (Nov 16, 2020):

Thanks for the report! This is an upstream issue in Win32-OpenSSH (/dup https://github.com/PowerShell/Win32-OpenSSH/issues/1253), fixed in https://github.com/PowerShell/openssh-portable/pull/426

@DHowett commented on GitHub (Nov 16, 2020): Thanks for the report! This is an upstream issue in Win32-OpenSSH (/dup https://github.com/PowerShell/Win32-OpenSSH/issues/1253), fixed in https://github.com/PowerShell/openssh-portable/pull/426
Author
Owner

@ghost commented on GitHub (Nov 16, 2020):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Nov 16, 2020): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Author
Owner

@DHowett commented on GitHub (Nov 16, 2020):

In short, exiting an alternate buffer or doing anything that might change the screen size (up to and including "launching a new SSH session") may cause output to be duplicated.

@DHowett commented on GitHub (Nov 16, 2020): In short, exiting an alternate buffer or doing anything that might change the screen size (up to and including "launching a new SSH session") may cause output to be duplicated.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11417