[Serdev] xlog color patch
Evan Borgström
evan.borgstrom at ca.mci.com
Mon Jun 13 16:05:54 UTC 2005
You might want to increase COL_BUF or move it to allocating memory as
needed, 20 bytes doesn't seem large enough IMHO as 3 color entities
(with fore & background colors) in a xlog call would overflow the
variable (5 + (5*3) + 1 = 21). How does the xlog module with this patch
react to something like:
xlog("L_ERR",
"%Csrtesting%Cybtesting%Cwstesting%Cswtesting%Cgrtesting%Crgtesting\n");
It's not likely to come up but you never know...
-Evan
Ingo Wolfsberger wrote:
> Hopefully now the right patch.
>
>
>>Hi
>>
>>xlog is very powerfull, but finding a log entry is hard.
>>With xlog color patch it is possible to change the color (foreground,
>>background) of the log entry. An ansi color capable term(emulation) is
>>needed.
>>
>>
>>>>From the readme:
>>
>> _________________________________________________________
>>1.2.1 Color Specifiers
>>
>> * %Cxy : Color specifier; x: foreground, y: background
>>
>> Colors could be:
>>
>> * s : Black
>> * r : Red
>> * g : Green
>> * y : Yellow
>> * b : Blue
>> * p : Purple
>> * c : Cyan
>> * w : White
>>
>> Writting the 1st color specifier in capitals gives bold
>> text.
>> The 2nd color specifier could be left away to only change
>> foreground color.
>> _________________________________________________________
>>
>>T
>>
>>
>>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serdev mailing list
> serdev at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serdev
More information about the Serdev
mailing list