microsoft / microsoft/terminal

Color Error in Docker on WSL2

Open
#16,257 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.18.2822.0

### Windows build number

10.0.19045.0

### Other Software

Docker Desktop 4.24.1
Zsh 5.9
Python 3.11

### Steps to reproduce

Using `docker exec -it /usr/local/bin/zsh` to attach to the running container.
Using python rich module to test color.

### Expected Behavior

Color palette should be full and smooth.

### Actual Behavior

![img_v3_024r_4db93ba3-c05d-476e-a3ef-573fd895ae8g](https://github.com/microsoft/terminal/assets/16175763/9973f40e-e502-4c4f-b682-9c7bc744b632)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the color palette test with Python's rich module inside Docker, attaching through WSL2 with `docker exec -it /usr/local/bin/zsh`. Compare the result with the expected full, smooth palette and trace which Windows Terminal or WSL2 color-handling entry point produces the degraded output; done means the palette renders correctly in this setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python, zsh
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.