[pacman-dev] [PATCH] makepkg: use tput for terminal-safe colored and bold text

Dan McGee dpmcgee at gmail.com
Thu Oct 22 20:46:19 EDT 2009


On Thu, Oct 22, 2009 at 7:41 PM, Allan McRae <allan at archlinux.org> wrote:
> Cedric Staniewski wrote:
>>
>> Suggested-by: Dan McGee <dan at archlinux.org>
>> Signed-off-by: Cedric Staniewski <cedric at gmx.ca>
>> ---
>>
>> I do not know if this patch is usefull at all, because I do not notice any
>> change. Just grabbed this from Dan's TODO list and wanted to play a bit
>> with tput.
>>
>
> It looks fine to me...
> I just have no idea on the advantage we are achieving with this change apart
> from the apparent terminal safeness.  Was the old version not safe?
>
> Dan: comments?

First comment- that TODO list is still huge, wow. :)

Anyway, this seems pretty reasonable to me, but not sure it is worth
it. At the least, we should capture these sequences once on script
startup, and then use the global variable in each function. And does
$(tput offbold) make more sense for the reset?

-Dan


More information about the pacman-dev mailing list