Skip to content

COOKED_READ tab completion is very wrong when the prompt is wrapped #4975

@AnuthaDev

Description

@AnuthaDev

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.535]
Windows Terminal version (if applicable): 0.10.761.0

Steps to reproduce

  1. Open cmd in Terminal.
  2. Reduce the width to minimum (well, not minimum but small enough, as it occurs after crossing some threshold).
  3. Press and hold Tab.

Expected behavior

cmd cycles through the directories:

ezgif-5-366a3a796ac1

Actual behavior

The names of directories are printed in succession without erasing the previous name which leads to this:

Also, note that this behaviour is not unique to Terminal, the default command promt(cmd/conhost/conPTY??) also has this bug:

image

After resizing the terminal the text cannot be erased.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CookedReadThe cmd.exe COOKED_READ handlingArea-InputRelated to input processing (key presses, mouse, etc.)Help WantedWe encourage anyone to jump in on these.In-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)Product-ConhostFor issues in the Console codebase

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions