vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.46k stars 149 forks source link

Highlight codes in the CLI output #250

Closed Primajin closed 9 months ago

Primajin commented 10 months ago

We are using multi colored CLI

image

However we don't highlight the most crucial thing: the code to redeem, so it's easy to miss them in between the lines.

image

Could we please make them stand out? Maybe blue or red?

vogler commented 9 months ago

Yea, probably a good idea. The colors come from console.log which does this automatically. The codes are strings, not integers, so no automatic highlighting. You can't just add color escape codes unconditionally if you don't want them to show up in redirected output etc., but have to check for terminal capabilites.

vogler commented 9 months ago

Ok, looks like https://github.com/chalk/chalk checks for color support.

vogler commented 9 months ago

I guess blue should be alright for most people: image

Primajin commented 9 months ago

Thanks 👍🏻