mobile-shell / mobile-shell/mosh

Mosh does not handle OSC 11 background color requests

Open
#1,145 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Since vim 7.4.757, vim uses an \033]11;?\007 OSC code to request the RGB triplet for the background color, and uses the result to decide whether to render a dark or a light color scheme.

Since mosh does not forward this request to the host terminal, it renders vim differently than ssh in terminals which support this code.

See also:

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 tracing how mosh handles terminal OSC requests, using the reported OSC 11 background-color query as the entry point. No file or test is named in the issue; done means mosh forwards the request to the host terminal so Vim can select the same color scheme as over ssh.

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
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.