unfurl icon indicating copy to clipboard operation
unfurl copied to clipboard

Better colors in log output

Open aszs opened this issue 2 years ago • 1 comments

Current colors as it looks in one terminal

Screen Shot 2022-04-15 at 1 19 21 PM

and another:

Screen Shot 2022-04-15 at 1 24 41 PM

Available colors: https://click.palletsprojects.com/en/8.0.x/api/#click.style

aszs avatar Apr 15 '22 20:04 aszs

@christinezapata the terminal user can usually change the value for each color and the background, as well as the background opacity (one of the screenshots has some transparency)

this might be a useful resource for checking various colors https://terminal.sexy/ there's a scheme browser tab you can check what different themes look like some common ones are darkula and solarized (probably a few more)

AjBreidenbach avatar Apr 15 '22 20:04 AjBreidenbach

i tweaked the colors when logging, think it is good enough for now... turns out its really hard to detect whether a terminal is in light or dark mode... there are some common envvars but they are unreliable (e.g. iterm sets COLORFGBG but it lies) and there's a escape sequence but not every terminal supports it, see https://stackoverflow.com/questions/2507337/how-to-determine-a-terminals-background-color

aszs avatar Nov 20 '22 01:11 aszs