Skip to content

Terminal progress on multiple lines if line wraps  #9221

@christopher-kiss

Description

@christopher-kiss

Bug report

What is the current behavior?
When the terminal is small enough so that the line of progress would wrap, it will create a new line instead of overwriting the current line of progress.

This works fine if the terminal is wide enough to fit the entire line on a single row without wrapping.

If the current behavior is a bug, please provide the steps to reproduce.
I'm getting this issue with angular cli:

  1. create a new angular project npm install -g @angular/cli and ng new test
  2. make the terminal small enough so that text wraps to a new line
  3. run ng serve to get a progress output
  4. observe that the progress is output on multiple lines
    image
  5. make the terminal large enough so that text does NOT wrap to a new line
  6. run ng serve to get a progress output
  7. observe that the progress did not output on multiple lines but overwrote the current line of progress
    image

What is the expected behavior?
Progress reported should always overwrite the current line instead of creating a new line if the line would wrap multiple lines.

Other relevant information:
webpack version: 4.3 I believe is what Angular uses.
Node.js version: 12.3.1 (also occurs on v11)
Operating System: Windows 10, build: 17763.259
Additional tools: angular cli

I can reproduce this in VS Code and Powershell directly.

I have reported this on VS Code, microsoft/vscode#74695 they say the issue is not them, I have tried with conpty on and off.

I also reported it on angular cli: angular/angular-cli#14623 they also say the issue is not them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions