You are not logged in.
is there a simple way to color pacman output (e.g., warnings, comments about pacnew files, etc.) without using pacman-color or some other package?
thanks.
Offline
What seems to be the problem with pacman-color or some other package?
Offline
i just don't feel like installing another package. also, i wanted to see if i could do it simply, e.g., by editing some rc file.
Offline
pacman might get color support some day: http://mailman.archlinux.org/pipermail/ … 12164.html
There are tools that can colorize output like http://colordiff.sourceforge.net/ for diff but it's a wrapper (as you can read on the page).
I think you'd have to hack the source code and I'm not sure how easy would it be to keep up with the updates.
Offline
The simplest thing possible is to apply the colour patch to the source code and recompile. The entire job involves a trivial modification of the PKGBUILD from the ABS. You may grab the ready-to-makepkg files from my git place.
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
I'd recommend pacman-color - I know you specifically asked for something else, but to me that seems like saying your looking for a good tool to drive a screw but you don't want to use a screwdriver.
If you're bored you could try to make your own filter script that would run pacman and do some sort of search/replace to add color escape codes to the output (sed commands would be my first thought). Of course this would really just be reinventing the wheel - and making it square.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
does anyone know if there is a specific reason for not adding color support to pacman? is it just that developers are working on more important things so they don't have time to play with trivial stuff such as colored output or is it part of the design to not have colored output? (in which case one is supposed to use pacman-color, or any of the wrappers such as packer, yaourt or something else)
I mean, the patch is there, and it works. why not merge it into pacman and have an option to turn coloring on/off?
...I put on my robe and a wizard hat...
Offline
Is the patch ready to merge?
http://mailman.archlinux.org/pipermail/ … 12167.html
http://mailman.archlinux.org/pipermail/ … 12181.html
Offline