Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console output mangled upon reaching scroll #938

Closed
erichiller opened this issue Nov 2, 2017 · 11 comments
Closed

Console output mangled upon reaching scroll #938

erichiller opened this issue Nov 2, 2017 · 11 comments
Assignees
Milestone

Comments

@erichiller
Copy link

I'm using Powershell inside ConEmu client side, but I've tried the same set of attempts in vanilla cmd.exe

I ran through TTY-PTY-support-in-Windows-OpenSSH and made sure I:

  • tried both cmd.exe and ConEmu
  • set $env:term="xterm" // set term=xterm respectively and ensured it was set on the connected to server session as well with %term% and ensuring I receive xterm back
  • set $env:SSH_TERM_CONHOST_PARSER=0 // set SSH_TERM_CONHOST_PARSER=0

Server Side

OpenSSH_7.6p1, LibreSSL 2.5.3
# Script module or binary module file associated with this manifest
ModuleToProcess = 'OpenSSHUtils.psm1'

# Version number of this module.
ModuleVersion = '1.0.0.1'

Server OperatingSystem: Windows 10 Pro, 15063.674 (Build 1703)

Client OperatingSystem: Windows 10 Pro, 14393.1770 (Build 1607)

What is failing: Terminal output is extremely mangled once the screen edge is reached and scroll has occurred. I actually didn't even realize that it took this to occur until writing this report. Of course my first thought is something with the scrollback buffer, but my settings are in accordance with the wiki:
image

and when using conemu side
image
image

Expected output:
image

Actual output
image

@manojampalam manojampalam added this to the Dec-Mid milestone Nov 20, 2017
@bingbing8 bingbing8 modified the milestones: 1.0.0.0, 1.0.1.0 Jan 19, 2018
@JonathanHolvey
Copy link

JonathanHolvey commented Feb 8, 2018

I've also experiencing this problem with extra lines in the output, as well as extra whitespace being printed between input characters, when connecting to a OpenSSH-Win32 server on Windows 7:

screenshot_20180208-071339

These clients I've had success with:

  • OpenSSH-Win32 in cmd.exe or ConEmu on Windows
  • GNU OpenSSH in Terminal on Ubuntu

These clients have problems:

  • GNU OpenSSH in cmd.exe or ConEmu on Windows
  • JuiceSSH on Android

@bagajjal
Copy link
Collaborator

bagajjal commented Feb 9, 2018

@JonathanHolvey - Did you check your "Screen Buffer width and Window Size" > 90.
please go through https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH.

What win32-openssh version are you using? Is it repro all the time?

@JonathanHolvey
Copy link

JonathanHolvey commented Feb 10, 2018

Yeah, I did read through that wiki page before posting. Everything seems to be in order, however the issue persisted. I was running Win32-OpenSSH version 1.0.0.2018.02.02.

In the end I removed Win32-OpenSSH (after forcibly removing the sshd service), and installed MSYS2, configuring the sshd server using this script instead. This works well for me since I work with Linux a lot and use Bash as my shell on Windows.

@dwatley
Copy link

dwatley commented Feb 17, 2018

@bagajjal Just want to add I can reproduce this as well.

Server: OpenSSH-Win64 v1.0.0.0
Client: Windows 10 1709, ssh.exe included with git from Git SCM: OpenSSH_7.6p1, OpenSSL 1.0.2l 25 May 2017

Did the xterm, buffer settings and SSH_TERM_CONHOST_PARSER bits. Can easily reproduce it every single session. Not an issue in PuTTY or Chrome SSH App. Happy to help debug. Should also note that this doesn't affect the ssh.exe included with OpenSSH-Win64.

Output:

console_issue

@bagajjal
Copy link
Collaborator

@dwatley - ssh.exe included with git doesn't run.

image

This might be a git ssh.exe problem as it's not seen on putty, Chrome SSH App and OpenSSH-Win64.

@dwatley
Copy link

dwatley commented Feb 23, 2018

@bagajjal Works for me...

C:\Program Files\Git\usr\bin>.\ssh.exe -V
OpenSSH_7.3p1, OpenSSL 1.0.2j  26 Sep 2016

Multiple people have reported the issue, I think it may be cygwin based ssh builds potentially?

@JonathanHolvey
Copy link

JuiceSSH has the same issue when connecting to a Win32-OpenSSH server, so it's not just cygwin.

@manojampalam manojampalam modified the milestones: 1.0.1.0, vNext Feb 26, 2018
@dwatley
Copy link

dwatley commented Apr 5, 2018

@bagajjal - Are you still having trouble reproducing this?

@dwatley
Copy link

dwatley commented Oct 5, 2018

@bingbing8 @bagajjal - Ping again. Is this in line for next release or is it not yet reproducible for you?

@bagajjal
Copy link
Collaborator

bagajjal commented Oct 5, 2018

@dwatley - Starting from windows 10 October 2018 update, we are going to use conpty supported provided by the Microsoft console team at server side. A bunch of serverside console rendering issues will be resolved including this.

Having said that, we still need to investigate this for down level OS. Fix for downlevel OS is not aimed for next release.

@bagajjal
Copy link
Collaborator

This should be fixed by now in windows 10.
For windows 10 below, we provide only basic support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants