Skip to content

Colors are broken on MSYS2 shell. #2292

Closed
@jamen

Description

@jamen

Problem

Colors are broken in VSCode terminal with MSYS2 shell. For example, rustup show outputs this:

image

But, Cargo's colors work fine:

image

So this isn't an issue on my end afaik.

Steps

  1. Use Windows, MSYS2, and VSCode terminal
  2. Use the MSYS2 shell with
    "terminal.integrated.shell.windows": "C:\\msys64\\msys2_shell.cmd",
    "terminal.integrated.shellArgs.windows": [
        "-defterm",
        "-no-start",
        "-use-full-path",
        "-mingw",
        "-here"
    ],
  1. Run a command which outputs color like rustup show

Possible Solution(s)

Copy how Cargo is doing colors.

Notes

  • Output of rustup --version: rustup 1.21.1 (7832b2e 2019-12-20)
  • Output of rustup show: See above.
  • Output of echo $TERM: xterm-256color

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