marcolardera / chatgpt-cli

Simple yet effective command line client for chatting with ChatGPT using the official API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document how to change colors.

mk-pmb opened this issue · comments

commented

I checked README.md and config.yaml but couldn't find anything about the colors.

Can you explain this better? I have no idea on what colors you are talking about...

commented

Most important would be the code snippets. They currently turn out dark blue on black, so I always have to copy them to my text editor to be able to easily read them. In another terminal they were medium blue and underlined.

I'm quite confused about that. Seems like a particular terminal setting. By default you should see the code snippets with the syntax highlighting provided by Rich.

commented

In that case, Readme should explain (probably in the "Markdown rendering" chapter?) that we use Rich for coloring, and where to find information about configuring Rich.

Rich is the Python library used for the terminal colors. It's not really configurable right now without editing the source code.

A potential feature idea I get from your feedback is to implement some form of configuration for that, maybe a colors.yaml file or something on that line.

commented

Configuring colors for Rich should be done upstream in Rich, or in an independent Rich-plugin that might then be used in chatgpt-cli. It would be a bad idea (because off-topic) to add significant portions of such code to the chatgpt-cli repo.

With current information I think the best solution would be to locate or open an upstream feature request ticket for color config, then in README.md or config.yaml, catch readers' expectation with a future-proof headline like "Configuring the colors" and there admit that it's not easily feasible right now, with a link to the ticket.