Skip to content

Line wrapping problem in bash on ubuntu on windows #17609

Closed

Description

When the line is full, terminal doesn't start a new line, instead of starting at the same line and eating the chars.

2016-12-20_21-16-19

  • VSCode Version: 1.8.1
  • OS Version: Windows 10 Pro Insider Preview Version 1607 Build 14986.1000

Steps to Reproduce:

  1. Config "terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
  2. Open integrated terminal
  3. Input something long to make the line wrap

Activity

  1. jiangfengming commented on Dec 20, 2016

    @jiangfengming
    Author

    The problem is not occur every time, try killing the terminal and reopen might occur.

  2. added
    terminal
    on Dec 20, 2016
  3. added
    bug
    windows
    on Jan 1, 2017
  4. added this to the Backlog milestone on Jan 1, 2017
  5. CherryDT commented on Jan 26, 2017

    @CherryDT

    It appears to me that this only happens when maximizing the window. The point where it Incorrectly wraps is the previous width of the terminal while the window was not maximized.

  6. added
    info-needed
    on Jan 26, 2017
  7. Tyriar commented on Jan 26, 2017

    @Tyriar
    Contributor

    Much work has happened in the next build, could you try this out again on the Insiders build?

  8. CherryDT commented on Jan 26, 2017

    @CherryDT

    Daniel Imms (@Tyriar) I'm on 1.9.0-insider and I can confirm that it still happens there.

  9. john-osullivan commented on Jan 27, 2017

    @john-osullivan

    Not sure if this is directly related to VSCode, I found this Issue while trying to figure out why the Bash on Ubuntu on Windows was failing to properly wrap lines. Don't believe I had this issue three weeks ago, cropped up for me in a recent Windows update. I'm on Version 1607, OS Build 15017.1000, and am running into this bug.

  10. adeeb1 commented on Feb 13, 2017

    @adeeb1

    I am still experiencing this issue, and it is very annoying. I'm running VSCode 1.9.1 on Build 14986.rs_prerelease.161202-1928. Bash on Windows does not have the line wrapping issue. Please consider prioritizing this, as it reduces the terminal's usefulness significantly.

  11. CherryDT commented on Apr 10, 2017

    @CherryDT

    I'm now on 1.12.0-insider and Windows build 15063.13 and the issue is still there and still very annoying. This issue is labeled as "needs more info" - what info is needed? How can I provide it to help resolving the problem?

  12. Tyriar commented on Apr 18, 2017

    @Tyriar
    Contributor

    David Trapp (@CherryDT) you're likely seeing #19665 which is being looked at by another team.

  13. CherryDT commented on Apr 21, 2017

    @CherryDT

    Daniel Imms (@Tyriar) I'm not so sure, because actually #19665 sounds like the same as #25133 and #25126 (causing text to shift to the left and the cursor to stay), and this problem instead causes lines to wrap before they reached the end and then overwrite the text on the same line from the left (not shifting anything and not separating the text from the cursor).

    Also it would appear that #19665/#25133/#25126 are triggered by specific characters or other similar things which happen inside the console, while this issue is triggered by maximizing VSCode (regardless of what happens in the console).

    Apart from that, I have this issue for months now, while the other issue (with shifted text) started only a few days ago for me.

  14. 22 remaining items

  15. Tyriar commented on May 17, 2017

    @Tyriar
    Contributor

    Anyone experiencing the issue could you test in tomorrow's Insiders build? It seemed to work fine on my machine with the update.

  16. chrmarti commented on Jun 2, 2017

    @chrmarti
    Collaborator
    • VSCode Version: Code - Insiders 1.13.0-insider (f977399, 2017-06-02T10:45:30.209Z)
    • OS Version: Darwin x64 15.6.0

    Seeing this on Linux and Mac (haven't tried Windows) with the first terminal in a new window.

  17. Tyriar commented on Jun 2, 2017

    @Tyriar
    Contributor

    Christof Marti (@chrmarti) there's another issue tracking that, this one is strictly about Windows.

  18. CherryDT commented on Jun 3, 2017

    @CherryDT

    Looks solved to me :)

  19. roblourens commented on Jun 6, 2017

    @roblourens
    Member

    Daniel Imms (@Tyriar) I see this in Windows in the first terminal of a new window, the width is not measured correctly but wrapping is ok. If I resize anything, it lays itself out correctly. Expected or new issue?

    image

  20. Tyriar commented on Jun 6, 2017

    @Tyriar
    Contributor

    roblourens I'm aware of it, and it's related to #20505. I don't think there's an issue yet so created #28138

  21. added
    verified
    on Jun 6, 2017
  22. StevieIsmagic commented on Nov 16, 2017

    @StevieIsmagic

    Hello, I am running VSC Version 1.18.0 on OSX High Sierra. I am experiencing this same behavior - text overwrites the bash shell command prompt - upon having added an emoji to my command prompt. This happens no matter the window size and also on multiple terminal tabs.

  23. locked and limited conversation to collaborators on Nov 17, 2017
  24. added a commit that references this issue on Sep 6, 2026
    bcdad62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugterminalupstreamverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions