repl icon indicating copy to clipboard operation
repl copied to clipboard

How to change the color of completions in the terminal?

Open soegaard opened this issue 2 years ago • 0 comments

I am sorry if this is the wrong place to ask, but I couldn't find a relevant mailing list / forum. [Attempts to get an answer on Discord and Reddit failed.]

I am using using Node in terminal with the Solarized Dark theme. Invoking Node with node, that is, I am using the standard repl fromlib/repl.js I am quite happy with the colors, except the colors for completions (the last, black line in the image show such a completion) and the colors for stack traces. The black color used for completions and traces are difficult to read on the dark background.

Now since I am not the only one using a dark theme in the terminal, I thought, I could easily lookup how to change the colors.

According to the manual for lib/repl.js something called "styles" are supported, but I can't figure out which style is used for completions.

The standard color my terminal is gray, so somewhere in the code for lib/repl.js there must be a color change to black.

Have I overlooked a simple solution?

If not, can you point me to the relevant section of code in lib/repl.js?

image

soegaard avatar Nov 20 '23 20:11 soegaard