Skip to content

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

Closed

Description

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

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 21, 2021
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 21, 2021
  3. j4james commented on Jan 21, 2021

    @j4james
    Collaborator

    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.

  4. zadjii-msft commented on Jan 21, 2021

    @zadjii-msft
    Member

    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.

  5. added
    Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Product-ConhostFor issues in the Console codebase
    on Jan 21, 2021
  6. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Jan 21, 2021
  7. added and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Jan 22, 2021
  8. DHowett commented on Jan 22, 2021

    @DHowett
    Member

    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.

  9. added a commit that references this issue on Jun 30, 2023
    94e6b91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-OutputRelated to output processing (inserting text into buffer, retrieving buffer text, etc.)Impact-VisualIt look bad.In-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-ConhostFor issues in the Console codebase

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions