cbeley / beleyenv

A dev-focused, idempotent system bootstrap script for ChromeOS's officially supported Linux container. Designed for me, but flexible enough for you to use too!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

console.log(undefined) unreadable when running a Node script (both interactive and non-interactive)

cbeley opened this issue · comments

I'm not 100% sure what is even allowing for console.log to have colored output or how that is configured.

Change the color to something readable for my terminal style.

The issue is due to color8 being set to a very low contrast color at https://github.com/cbeley/beleyenv/blob/master/configs/kitty.conf#L445 . This is meant to match the solarized theme, but I'm not a fan of color0 and color8 being set to such a low contrast color.

Debating what to change it to, since the use of color8 and color0 make sense if they have a different background. Not totally sure if the fault here is with Node, kitty, or elsewhere...

Reference for what the color values mean: https://www.markusweimar.de/en/color-schemes/ .
I'm using the solarized theme at https://github.com/altercation/solarized/blob/master/xresources/solarized .

altercation/solarized#85 may be related and suggest this is a consequence of Node's choice to use color8.

solarized/xresources#2 seems to match what I'm seeing exactly. Open since 2013.

I'll keep this open for a bit to remember this in case I run into other color problems with the potential fix I took from the solarized xresources repo. Seems like an ok solution for the moment at least.

I have not seen any major issues with this. Closing.