Skip to content

Bash on Ubuntu on Windows drawing issues while resizing window #30

Closed

Description

Updating a Raspberry Pi with Raspbian OS using 'apt' via SSH in Bash for Windows and resizing the window during the upgrade phase (sudo apt upgrade -y) seems to have rows drawing issues.

I was able to reproduce it also within my Bash sub-system while upgrading it.

clipboard01_bash_resize_while_updating_apt
clipboard02_bash_resize_while_upgrading_apt
clipboard03_bash_resize_while_upgrading_apt
clipboard04_bash_resize_while_upgrading_apt

Activity

  1. added
    Product-Conhost
    Work-Item
    on Sep 13, 2017
  2. zadjii-msft commented on Sep 13, 2017

    @zadjii-msft
    Member

    I can confirm that this is in fact happening. I can understand why it's happening, given the current workings of the console. However, I don't think a fix would be super easy. I believe this has something to do with the Console reflowing the text after a resize event. We keep redrawing the buffer every time the size changes, and then apt is also redrawing on top of that, and everyone gets confused. We might be able to defer reflowing until the resize has stopped, but that might not resolve the problem entirely, and might make it worse.

    I'll add it to my bug backlog either way.

  3. noscript commented on Nov 14, 2017

    @noscript

    The problem has probably something do with recognizing \r or ^H.

  4. added
    Issue-Feature
    and removed
    Work-Item
    on Nov 28, 2017
  5. zadjii-msft commented on Nov 28, 2017

    @zadjii-msft
    Member

    So, I've taken a closer look at this. I believe the "Right Way" to fix this is to implement a more unix-y buffer. Unfortunately that's a little bit bigger of a task then we can get done for the next release, but (without committing to anything) we do have work planned in that area.

    In the meantime, I'm replacing the "bug" label with the "feature" label - still on our radar, just a little bit farther out.

  6. ghost added
    Needs-Tag-Fix
    on May 17, 2019
  7. added
    Area-Output
    on May 29, 2019
  8. ghost removed
    Needs-Tag-Fix
    on May 29, 2019
  9. added
    Needs-Triage
    on Jul 8, 2024
  10. carlos-zamora commented on Jul 10, 2024

    @carlos-zamora

    Yeah, now that #8000 is done, we think that this is as good as it gets. Closing.

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

    Area-OutputIssue-FeatureNeeds-TriageProduct-Conhost

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions