Skip to content

Fix tabs being printed in cmd.exe prompts#16273

Merged
DHowett merged 2 commits intomainfrom
dev/lhecker/16044-cooked-uia-fixup
Nov 7, 2023
Merged

Fix tabs being printed in cmd.exe prompts#16273
DHowett merged 2 commits intomainfrom
dev/lhecker/16044-cooked-uia-fixup

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Nov 7, 2023

A late change in #16105 wrapped _buffer into a class to better track
its dirty state, but I failed to notice that in this one instance we
intentionally manipulated _buffer without marking it as dirty.
This fixes the issue by adding a call to MarkAsClean().

This changeset also adds the test instructions from #15783 as a
document to this repository. I've extended the list with two
bugs we've found in the implementation since then.

Validation Steps Performed

  • In cmd.exe, with an empty prompt in an empty directory:
    Pressing tab produces an audible bing and prints no text ✅

@lhecker lhecker added Product-Conhost For issues in the Console codebase Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Area-CookedRead The cmd.exe COOKED_READ handling labels Nov 7, 2023
@zadjii-msft zadjii-msft added this to the Terminal v1.20 milestone Nov 7, 2023
@DHowett DHowett merged commit 7a8dd90 into main Nov 7, 2023
@DHowett DHowett deleted the dev/lhecker/16044-cooked-uia-fixup branch November 7, 2023 17:51
DHowett pushed a commit that referenced this pull request Nov 7, 2023
A late change in #16105 wrapped `_buffer` into a class to better track
its dirty state, but I failed to notice that in this one instance we
intentionally manipulated `_buffer` without marking it as dirty.
This fixes the issue by adding a call to `MarkAsClean()`.

This changeset also adds the test instructions from #15783 as a
document to this repository. I've extended the list with two
bugs we've found in the implementation since then.

## Validation Steps Performed
* In cmd.exe, with an empty prompt in an empty directory:
  Pressing tab produces an audible bing and prints no text ✅

(cherry picked from commit 7a8dd90)
Service-Card-Id: 91033502
Service-Version: 1.19
DHowett added a commit that referenced this pull request Jan 12, 2024
- AtlasEngine: Minor bug fixes (GH-16219)
- Fix the fix for the fix of nearby font loading (GH-16196)
- Added selectionBackground to light color schemes (GH-16243)
- Another theoretical fix for a crash (GH-16267)
- Fix tabs being printed in cmd.exe prompts (GH-16273)

Related work items: MSFT-47266988
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-CookedRead The cmd.exe COOKED_READ handling Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-Conhost For issues in the Console codebase

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

3 participants