Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot display colors with watch #71

Open
autra opened this issue Dec 9, 2023 · 3 comments
Open

Cannot display colors with watch #71

autra opened this issue Dec 9, 2023 · 3 comments

Comments

@autra
Copy link

autra commented Dec 9, 2023

Description

dysk never outputs color with watch -c.

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

steps to reproduce

  • use watch -c dysk --color yes

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
Copy link
Owner

Canop commented Dec 9, 2023

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
Copy link
Owner

Canop commented Dec 9, 2023

I also checked there's no problem with neowatch.

@autra
Copy link
Author

autra commented Dec 9, 2023

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

Thanks for neowatch! I didnt know this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants