microsoft / microsoft/edit

[bug] edit does not respect terminal color scheme on various terminal applications

Open
#575 11 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug E-help-wanted
Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

edit respects terminal color scheme on some terminals like xterm, wezterm.
But not on others like ghostty (HEAD) or KDE Konsole.

I inspected why this is so using the ghostty (compiled from git HEAD) terminal inspector and guidance from jcollie https://github.com/ghostty-org/ghostty/discussions/7874#discussioncomment-13713176

Image

It seems mode 2031 is not turned on for edit and edit has not asked to be notified of theme changes.
This may be the underlying issue for edit's finicky behavior.

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 with edit's terminal color-scheme handling and compare its behavior in terminals such as xterm, WezTerm, Ghostty, and KDE Konsole. Inspect whether terminal mode 2031 is enabled and whether edit requests theme-change notifications; done means color-scheme changes are respected across the affected terminals.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.