micro-editor / micro-editor/micro
Tmux Colour Schemes Don't Work Properly (Background in particular)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 29.6k
- Forks
- 1.4k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 10
Description
Description of the problem or steps to reproduce
Color scheme don't work properly in tmux. An example is the "one-dark" theme. In alacritty without tmux, the background will be the correct bluish grey color. In tmux, it's just a default grey.
I've tried all the fixes I can find online, most of which involve adding a line like: set -g default-terminal "screen-256color" to tmux.conf, with various different values. Non of them seemed to work. The MICRO_TRUECOLOR value is set to 1 in both alacritty and tmux. The issue also occurs in Xfce4-terminal.
The only fix I have found is to set alacritty (not tmux) to TERM="xterm-kitty" (the issue doesn't occur on kitty).
Specifications
Version: 2.0.13
Commit hash: 68d88b57
OS: Arch
Compiled on October 22, 2023
Terminal: Alacritty with tmux
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the color-scheme behavior in Micro 2.0.13 with Alacritty and tmux, comparing it with Alacritty without tmux and with Xfce4-terminal. The report names no source file or test; done means the one-dark background renders correctly in tmux without requiring the xterm-kitty TERM workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100