Wrong colors using emacs-nox in WT-Ubuntu

Open
#2,953 20 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
emacs, ubuntu

Research direction

Start by comparing the attached screenshots for emacs-nox across MinTTY, MSYS2 bash in Windows Terminal, and Ubuntu in Windows Terminal, then reproduce the differing colors in the reported environments. Done means identifying and correcting the Windows Terminal behavior so Ubuntu matches the expected color scheme without regressing the other environments.

Written by the indexing model from the issue text.

Description

Area-VT Issue-Bug Needs-Attention Product-Terminal

By default I use MSYS2 MinTTY and by means of wslbridge I use also this MinTTY for WSL Ubuntu. With both these apps I use a color scheme which I added to the profile.json:

{
            "name" : "base16-default-mod-lighten",
            "foreground" : "#D0D0D0",
            "background" : "#151515",
            "black" : "#151515",
            "red" : "#AC4142",
            "green" : "#90A959",
            "yellow" : "#F4BF75",
            "blue" : "#6A9FB5",
            "purple" : "#AA759F",
            "cyan" : "#75B5AA",
            "white" : "#D0D0D0",
            "brightBlack" : "#505050",
            "brightRed" : "#C25E5E",
            "brightGreen" : "#A6BB7B",
            "brightYellow" : "#F8D5A5",
            "brightBlue" : "#8CB5C6",
            "brightPurple" : "#BE95B5",
            "brightCyan" : "#97C7BE",
            "brightWhite" : "#F5F5F5"
        }

In the same profile.json I added the profiles for MSYS2 bash. I use the same above color scheme for MSYS2 bash and Ubuntu in WT.

In this attachment
emacs-nox-sshots.tar.gz
there are a few screenshots of emacs-nox running on various systems. As you can see I have the same good result in MinTTY (emacs-nox-mintty.png), Ubuntu in MinTTY (emacs-nox-mintty-Ubuntu.png) and in MSYS2 bash in WT (emacs-nox-WT-msys2.png). Instead in WT Ubuntu I get what I call bad result (emacs-nox-WT-Ubuntu.png).

Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

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.

More from microsoft/terminal

All issues in microsoft/terminal

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.