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

Open
opened 2026-01-31 00:51:00 +00:00 by claunia · 0 comments
Owner

Originally created by @AnuthaDev on GitHub (Mar 18, 2020).

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.

Originally created by @AnuthaDev on GitHub (Mar 18, 2020). # 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](https://user-images.githubusercontent.com/36439704/76931217-318cef80-690e-11ea-845c-e2cbf2eacb47.gif) # Actual behavior The names of directories are printed in succession without erasing the previous name which leads to this: ![](https://user-images.githubusercontent.com/36439704/76930157-db1eb180-690b-11ea-873b-18f50db871c3.png) Also, note that this behaviour is not unique to Terminal, the default command promt(cmd/conhost/conPTY??) also has this bug: ![image](https://user-images.githubusercontent.com/36439704/76930682-0fdf3880-690d-11ea-9f9f-7c9f9c8e1d1a.png) After resizing the terminal the text cannot be erased.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6940