gpustat icon indicating copy to clipboard operation
gpustat copied to clipboard

Displaying username on dark terminals

Open pronobis opened this issue 7 years ago • 8 comments

Currently, black color is used to display the username. This makes it impossible to see anything on dark terminals. Any chance, a different color (other than black or white) can be used?

pronobis avatar Mar 07 '17 02:03 pronobis

I am also using dark terminals and it is pretty recognizable. How about adjusting your ANSI colors for Black-Bright ( ANSIColors.GRAY)?

BTW, it'd better to have a configuration point without having modify the code for customization, but I am wondering how I can achieve it. Do you have any suggestions?

wookayin avatar Mar 07 '17 20:03 wookayin

Maybe a config file ~/.gpustat ?

pronobis avatar Mar 07 '17 23:03 pronobis

+1, I think users should be allowed to set their own colors for each part since there some kind of configuration will always clash.

@wookayin On my machine gpustat uses *color0 for the user which is standard black, I guess it is a problem with blessings not working properly on urxvt.

Rizhiy avatar Jan 14 '18 13:01 Rizhiy

Hi @Rizhiy, would a new color term code introduced in 8d3f917d6 work on urxvt?

UPD: See #34

wookayin avatar Apr 01 '18 22:04 wookayin

For configuration of color codes, it might be a good idea to play with $XDG_CONFIG/gpustat (i.e. ~/.config/gpustat/), yet no plan to add this very soon.

wookayin avatar Apr 01 '18 22:04 wookayin

Will be discussed in #51

wookayin avatar Sep 16 '18 03:09 wookayin

I was also having the same problem with Guake until I enabled an option called "Bold text is also bright (VTE >=0.52)".

bryant1410 avatar Mar 25 '20 15:03 bryant1410

image

A dirty work around:

At this line https://github.com/wookayin/gpustat/blob/master/gpustat/core.py#L217 change term.bold_black to term.bold_gray

yueyericardo avatar Jun 27 '20 06:06 yueyericardo