[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#399714: ANSI color output (attached)



Loïc Minier <lool@dooz.org> writes:
> On Sun, Dec 03, 2006, Russ Allbery wrote:

>> The one thing that I think should probably be changed is that lintian
>> should probably default to not using color and support
>> --color={never,always,auto} similar to ls.  The problem with defaulting
>> to using color is that we have no idea what background and foreground
>> color someone is using for their shell and we may inadvertantly produce
>> something that's unreadable.  That looks like it's a fairly simple
>> change to your patch.

>  Ok.  I thought about this problem when picking up the colors, but saw
>  no easy way to have that guessed automatically and supposed the user
>  would configure lintian to match his terminal.  "bold" or "underline"
>  would work in all cases I suppose.

True.  But color is so much nicer.  :)

>    Another problem I thought about is that some scripts might be running
>  lintian and capturing its output, but I suppose that the "tty" test is
>  enough for most cases.

Yeah, experience with ls indicates that the tty test is enough to take
care of that, and if for some strange reason that doesn't work, the user
can use --color=never.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>



Reply to: