Skip to content

Console "Discard Old Duplicates" doesn't apply in Windows Terminal #13515

Open
@stanio

Description

@stanio

Windows Terminal version

1.14.1861.0

Windows build number

10.0.19043.1826

Other Software

No response

Steps to reproduce

  • Open a legacy "Command Prompt" console;

  • From the window menu (top-right icon) select "Defaults";

  • Check "Discard Old Duplicates" in the "Command History" options group, and "OK" to apply;

    console-properties

  • Open a "Command Prompt" in Windows Terminal, and enter commands in succession:

    dir
    dir /b
    dir
    dir /b
    dir
    dir /b
    

Expected Behavior

The command buffer should discard previous duplicate entries, as I'm seeing in a legacy "Command Prompt" console – pressing F7 reveals:

legacy-console-buffer

Actual Behavior

The "Command Prompt" in Windows Terminal doesn't appear to honor the "Discard Old Duplicates" setting – pressing F7 reveals:

wterm-console-buffer

This often causes the inconvenience of losing previous command history, after repeating a few of the same commands in succession for some time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-CookedReadThe cmd.exe COOKED_READ handlingHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-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