Skip to content

Display problem when using "less" command #9431

Closed

Description

@TypicalSEE

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

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Mar 10, 2021
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Mar 10, 2021
  3. zadjii-msft commented on Mar 10, 2021

    @zadjii-msft
    Member

    TypicalSEE Which version of ssh are you using?

  4. DHowett commented on Mar 10, 2021

    @DHowett
    Member

    This sounds like #9176.

  5. TypicalSEE commented on Mar 11, 2021

    @TypicalSEE
    Author

    TypicalSEE Which version of ssh are you using?

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

  6. ghost added
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    on Mar 11, 2021
  7. ghost removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on Mar 11, 2021
  8. DHowett commented on Mar 11, 2021

    @DHowett
    Member

    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?

  9. added
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    and removed
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    on Mar 11, 2021
  10. TypicalSEE commented on Mar 12, 2021

    @TypicalSEE
    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?

  11. ghost added
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    on Mar 12, 2021
  12. ghost removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on Mar 12, 2021
  13. jdebp commented on Mar 12, 2021

    @jdebp

    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?
  14. DHowett commented on Mar 12, 2021

    @DHowett
    Member

    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. 😄

  15. zadjii-msft commented on Nov 23, 2021

    @zadjii-msft
    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

  16. added
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    and removed
    Needs-AttentionThe core contributors need to come back around and look at this ASAP.
    on Nov 23, 2021
  17. ghost added
    No-Recent-ActivityThis issue/PR is going stale and may be auto-closed without further activity.
    on Nov 28, 2021
  18. sarbian commented on Nov 28, 2021

    @sarbian

    I had a similar issue and that version fixed it.

  19. ghost removed
    No-Recent-ActivityThis issue/PR is going stale and may be auto-closed without further activity.
    on Nov 28, 2021
  20. zadjii-msft commented on Nov 29, 2021

    @zadjii-msft
    Member

    I'll count that, thanks for confirming!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to somethingNeeds-Tag-FixDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-ExternalFor issues that are outside this codebaseResolution-Fix-AvailableIt's available in an Insiders build or a releaseTracking-ExternalThis bug isn't resolved, but it's following an external workitem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions