scottchiefbaker / dool

Python3 compatible fork of dstat
GNU General Public License v3.0
315 stars 58 forks source link

add support for terminals with only 16 colors #43

Closed leahneukirchen closed 1 year ago

leahneukirchen commented 1 year ago
ISSUE TYPE
DSTAT VERSION

master

SUMMARY

Add back support for 16 color terminals, with --color16. It is selected by default if the terminal doesn't report 256 colors.

Fixes #18.

scottchiefbaker commented 1 year ago

This looks good to me... but PRs should target the next branch. If you update this to target next I will land it.

schmorp commented 2 weeks ago

Why not use terminfo? It will tell you whether the terminal has 8, 88 or 256 colors (8 color terminals are usually misidentified as 16 color terminals, which do not exist).

scottchiefbaker commented 2 weeks ago

I just checked my WSL and Rocky 9 servers and neither have any info in /etc/terminfo