Skip to content

Issue with line-wrapped tabstops after resizing the window #4669

@ethanherbertson

Description

@ethanherbertson

Environment

Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.9.433.0

Steps to reproduce

  1. From WSL, echo a line of text containing a literal tab character, long enough to cause the tab character to render AFTER Terminal line-wraps the line (e.g. on a second line).
  2. Resize Terminal, increasing its width enough so that the whole line of text now fits on a single line
  3. Print the same line of text again.

Expected behavior

The second printing of the text is printed in a single line, with the tab producing the expected amount of horizontal whitespace.

Actual behavior

The line of text is corrupted, with the tab consuming too much horizontal whitespace (= the full remaining width of the window - 1), causing the line to sill be wrapped across multiple lines as well.

I would assume this is related to the various problems listed in #4200, but I don't see this specifically mentioned (though some of the issues listed there are beyond my ability to grok).

Fully fleshed-out example:

Assuming an initial window width of approximately 80 characters, here's an example command that will print a suitable line:

echo -e "123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 Hardtab:\t123456789 123456789 123456789 123456789"

On a smallish window, that renders something like this:

image

If you then resize the window wide enough that the output line is reflowed onto a single line...

image

... and then re-run the echo you get something clearly quite wrong:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Product-ConhostFor issues in the Console codebaseResolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions