On 2/6/07, Vojtěch Gondžala <vogo@seznam.cz> wrote:
OK, i make new diff(http://www.fi.muni.cz/~xgondz/pacman3-color/pacman3-color.diff), I hope that is correct.
The function color is colouring a string only when descriptor is a tty, it's querying via function isatty.
I thing, when a string will be colouring in function pm_fprintf must be overlay function fprintf and that isn't a trifle.
I can keep this patch out of pacman, when you think that color output in console isn't good idea, it isn't problem ;-).
The idea definitely has promise. We just have to make sure if we implement it, we do it in a way that doesn't break the way a lot of people may use pacman. Thanks for the diff though- you are the first person to actually follow through with a feature request this big and patch it. -Dan