strange behavior with tab[char] +line wrap + backspace in conhost/conpty #12133

Closed
opened 2026-01-31 03:07:08 +00:00 by claunia · 3 comments
Owner

Originally created by @LuanVSO on GitHub (Jan 21, 2021).

Environment

Windows build number: 10.0.19042.746
Windows Terminal version (if applicable):1.5.3242.0

Any other software?

Steps to reproduce

compile and run this simple code:

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	scanf("%*s",NULL);
	return 0;
}
  • then type [tab] + [any character]
  • hold tab again until the cursor goes to next line
  • hold backspace to delete all character's

Expected behavior

the character inserted gets removed

Actual behavior

it doesn't
image

Originally created by @LuanVSO on GitHub (Jan 21, 2021). # Environment ```none Windows build number: 10.0.19042.746 Windows Terminal version (if applicable):1.5.3242.0 Any other software? ``` # Steps to reproduce compile and run this simple code: ```C #include <stdio.h> #include <stdlib.h> int main(void) { scanf("%*s",NULL); return 0; } ``` * then type [tab] + [any character] * hold tab again until the cursor goes to next line * hold backspace to delete all character's # Expected behavior the character inserted gets removed # Actual behavior it doesn't ![image](https://user-images.githubusercontent.com/43626415/105271953-34342300-5b77-11eb-87f6-7bfd5cb3ba34.png)
claunia added the Product-ConhostArea-OutputIssue-BugIn-PRImpact-VisualPriority-2 labels 2026-01-31 03:07:08 +00:00
Author
Owner

@j4james commented on GitHub (Jan 21, 2021):

It's worth mentioning that this also happens when you start conhost in the legacy v1 mode, so I don't think it's a new bug.

@j4james commented on GitHub (Jan 21, 2021): It's worth mentioning that this also happens when you start conhost in the legacy v1 mode, so I don't think it's a new bug.
Author
Owner

@zadjii-msft commented on GitHub (Jan 21, 2021):

Oh wow this happens all the way back to v1? That's crazy. I'm sure there some horrifying thing that's happening in WriteCharsLegacy to cause this.

@zadjii-msft commented on GitHub (Jan 21, 2021): Oh wow this happens all the way back to v1? That's crazy. I'm sure there some horrifying thing that's happening in `WriteCharsLegacy` to cause this.
Author
Owner

@DHowett commented on GitHub (Jan 22, 2021):

Since it's not a regression, I moved it into the console backlog. Some buffer changes are coming that might make this more or less bad. We'll evaluate.

@DHowett commented on GitHub (Jan 22, 2021): Since it's not a regression, I moved it into the console backlog. Some buffer changes are coming that might make this more or less bad. We'll evaluate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12133