nodejs / repl

REPL rewrite for Node.js ✨🐢🚀✨
MIT License
177 stars 25 forks source link

How to change the color of completions in the terminal? #53

Open soegaard opened 9 months ago

soegaard commented 9 months ago

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