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

Bug#399714: ANSI color output (attached)



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.
   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.

-- 
Loïc Minier <lool@dooz.org>
  "You see, killbots have a preset kill limit.  Knowing their weakness,
   I sent wave after wave of my own men at them until they reached their
   limit and shutdown."                                -- Zapp Brannigan



Reply to: