Canop / dysk

A linux utility to get information on filesystems, like df but better
https://dystroy.org/dysk
MIT License
890 stars 25 forks source link

Cannot display colors with watch #71

Open autra opened 9 months ago

autra commented 9 months ago

Description

dysk never outputs color with watch -c.

I'd expect this usage to be possible with --color yes (or force?).

steps to reproduce

expected the output is colored

actual output is not colored.

additional info

Some tools behaves this way. Ex the crate dua does output colors when executing watch -c dua.

Canop commented 9 months ago

This is weird. It looks like watch removes the color, I have no idea why.

Try this:

dysk --color yes > colored

Then you can check the output is colored with

cat colored

But if you do

 watch -c cat colored

then there's no color.

Canop commented 9 months ago

I also checked there's no problem with neowatch.

autra commented 9 months ago

watch + dua do work though. No idea what's going on 😆

Thanks for neowatch! I didnt know this one.