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

Display problem when using "less" command #9431

Closed
TypicalSEE opened this issue Mar 10, 2021 · 11 comments
Closed

Display problem when using "less" command #9431

TypicalSEE opened this issue Mar 10, 2021 · 11 comments
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase Resolution-Fix-Available It's available in an Insiders build or a release Tracking-External This bug isn't resolved, but it's following an external workitem.

Comments

@TypicalSEE
Copy link

Windows: Microsoft Windows [版本 10.0.19041.804]
Terminal: 1.6.10571.0

Hi, I'm using OpenSSH to connect to a remote Linux server under Windows Terminal. But the output of "less -SN" seems not normal. The first screenshot shows it: the 19th line appears besides the 1st line. The second screenshot is the normal output (after I quit and type that command again). Unexpected output were not about a fixed line. Sometimes it's the 1st line overlapping with another line but other times it was some other lines repeating themselves. I had been using Putty to connect to a remote servers before but nerver met this problem so I think it might be a bug of Windows Terminal. Thanks.
issue

normal

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Mar 10, 2021
@zadjii-msft
Copy link
Member

@TypicalSEE Which version of ssh are you using?

@zadjii-msft zadjii-msft added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Mar 10, 2021
@DHowett
Copy link
Member

DHowett commented Mar 10, 2021

This sounds like #9176.

@TypicalSEE
Copy link
Author

@TypicalSEE Which version of ssh are you using?

"OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5", installed from Windows 10 “Optional Feature”.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 11, 2021
@DHowett
Copy link
Member

DHowett commented Mar 11, 2021

In that case, I suspect that you're hitting the screen size change buffering issue in PowerShell/openssh-portable#426. Even though it doesn't look like the screen size is changing, less is turning on the "alternate buffer" which reports a window resize. OpenSSH, until pull 426, had trouble handling the resize event.

If you run OpenSSH 8.1 from the win32-openssh releases page, does it go away?

@DHowett DHowett added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Mar 11, 2021
@TypicalSEE
Copy link
Author

Downloaded OpenSSH 8.1 from that page and tried it, the problem still exists. By the way, ssh version of my remote server is "OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017". Should I also upgrade that one?

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Mar 12, 2021
@jdebp
Copy link

jdebp commented Mar 12, 2021

Three answers will help the Microsoft (and other) people:

  • Does this happen as you scroll up and down? Or initially when less first displays the file?
  • What happens when you tell less to redraw the screen?
  • What is the value of the TERM environment variable on the system that is actually running the less program?

@DHowett
Copy link
Member

DHowett commented Mar 12, 2021

I apologize. The pull request that fixes the buffering/repeat issue merged on April 2, 2020 but the 8.1 release came out in Dec 2019. I do not know why I thought it might help. 😄

@zadjii-msft
Copy link
Member

@TypicalSEE There's now an OpenSSH 8.6 (https://github.com/PowerShell/Win32-OpenSSH/releases/tag/V8.6.0.0p1-Beta), mind trying that one? We think that might have the fix

@zadjii-msft zadjii-msft added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Nov 23, 2021
@ghost ghost added the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Nov 28, 2021
@ghost
Copy link

ghost commented Nov 28, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@sarbian
Copy link

sarbian commented Nov 28, 2021

I had a similar issue and that version fixed it.

@ghost ghost removed the No-Recent-Activity This issue/PR is going stale and may be auto-closed without further activity. label Nov 28, 2021
@zadjii-msft
Copy link
Member

I'll count that, thanks for confirming!

@zadjii-msft zadjii-msft added Tracking-External This bug isn't resolved, but it's following an external workitem. Resolution-External For issues that are outside this codebase Resolution-Fix-Available It's available in an Insiders build or a release labels Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase Resolution-Fix-Available It's available in an Insiders build or a release Tracking-External This bug isn't resolved, but it's following an external workitem.
Projects
None yet
Development

No branches or pull requests

5 participants