mobile-shell / mobile-shell/mosh

SGR 2 (dim/dark) doesn't work

Open
#1,276 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature Terminal emulation
Dominant language
C++
Stars
14.5k
Forks
865
PR merge metrics
No merged PRs in 30d

Description

Code:

echo -e '\e[2mtest'
python -c "from termcolor import colored; print(colored('test', attrs=['dark']))"

Outside mosh (using GNOME terminal):
图片

Inside mosh:
图片

Contributor guide

No contributing guide indexed for this repository

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 running the provided echo -e '\e[2mtest' and termcolor commands inside and outside mosh to reproduce the difference. Trace how mosh handles the SGR 2 escape sequence, and consider the issue done when dim/dark text renders consistently inside mosh and the reproduction no longer shows a discrepancy.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.