I didn't actually look for colour output for systemctl (yeah.. bad debugging, kinda lazy, but it wasn't very important so I didn't give it too much time). I thought I'd try to reproduce for you and thought I should have a quick look at colour output for systemctl, and came up with:
The lfs example still does not; I suspect it's probably ignoring the color arg depending on its environment (I wonder if watch changes the env?- not to imply it would be wrong to do so if so).
I feel a bit bad for making it look like this was watch's fault, when it probably isn't. I'll dig into the lfs thing later.
> watch -c -n 1 -- systemctl --user --state=failed
> watch -c -n 1 -- lfs --color yes -c +inodes_use_percent
I didn't actually look for colour output for systemctl (yeah.. bad debugging, kinda lazy, but it wasn't very important so I didn't give it too much time). I thought I'd try to reproduce for you and thought I should have a quick look at colour output for systemctl, and came up with:
> watch -c -n 1 -- SYSTEMD_COLORS=1 systemctl --user --state=failed
which works well.
The lfs example still does not; I suspect it's probably ignoring the color arg depending on its environment (I wonder if watch changes the env?- not to imply it would be wrong to do so if so).
I feel a bit bad for making it look like this was watch's fault, when it probably isn't. I'll dig into the lfs thing later.