Skip to content

powershell breaks cmd.exe styling #6390

@B44ken

Description

@B44ken

Environment

Windows build number: Microsoft Windows [Version 10.0.19042.685]
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 1 (Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020)

and

Windows build number: Microsoft Windows [Version 10.0.18363.1256]
Your Distribution version: Ubuntu 20.04
Whether the issue is on WSL 2 and/or WSL 1: WSL 1 (Linux version 4.4.0-18362-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #1049-Microsoft Thu Aug 14 12:01 PST 2020)

Steps to reproduce

  • Launch windows command prompt
  • powershell.exe echo hi > hi.txt (file/command can be anything)
  • wsl
  • powershell.exe echo bye > bye.txt (file/command can be anything)

Expected behavior

nothing (the file would be written silently)

Actual behavior

the file write works, but cmd.exe's font also changes instantly. terminal size, colours, and font size are unchanged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions