No support for 16 colours

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing how src selects terminal colours and where the existing NO_COLOR and 256-colour modes are handled. Determine the option needed for 16-colour output, then verify that it uses terminal-theme colours while preserving the existing no-colour and 256-colour behaviours.

Written by the indexing model from the issue text.

Description

It appears src either uses no colours (NO_COLOR=1), or 256 colours. This means that if the colours chosen for 256-colour mode are hard to read, I have no choice but to turn colour off entirely and lose some valuable readability-enhancing information in the output.

I would really appreciate an option to stick to 16 colours (4-bit colour), so that src only uses colours defined by my terminal theme.

Dominant language
Go
Stars
356
Forks
76
Avg merge
1d 2h
Merged PRs (30d)
13

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.

More from sourcegraph/src-cli

All issues in sourcegraph/src-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.