mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
color: support "italic" attribute
We already support bold, underline, and similar attributes. Let's add italic to the mix. According to the Wikipedia page on ANSI colors, this attribute is "not widely supported", but it does seem to work on my xterm. We don't have to bump the maximum color size because we were already over-allocating it (but we do adjust the comment appropriately). Requested-by: Simon Courtois <scourtois@cubyx.fr> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5621068f3d
commit
54590a0eda
3
color.h
3
color.h
@@ -16,7 +16,8 @@ struct strbuf;
|
||||
*
|
||||
* The space for attributes is also slightly overallocated, as
|
||||
* the negation for some attributes is the same (e.g., nobold and nodim).
|
||||
* We also allocate space for 6 attributes (even though we have only 5).
|
||||
*
|
||||
* We allocate space for 6 attributes.
|
||||
*/
|
||||
#define COLOR_MAXLEN 70
|
||||
|
||||
|
||||
Reference in New Issue
Block a user