Skip to content

Commit 0edad17

Browse files
peffgitster
authored andcommitted
docs: describe ANSI 256-color mode
Our color specifications have supported the 256-color ANSI extension for years, but we never documented it. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7fa1365 commit 0edad17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Documentation/config.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,10 @@ accepted are `normal`, `black`, `red`, `green`, `yellow`, `blue`,
825825
`blink` and `reverse`. The first color given is the foreground; the
826826
second is the background. The position of the attribute, if any,
827827
doesn't matter.
828+
+
829+
Colors (foreground and background) may also be given as numbers between
830+
0 and 255; these use ANSI 256-color mode (but note that not all
831+
terminals may support this).
828832

829833
color.diff::
830834
Whether to use ANSI escape sequences to add color to patches.

0 commit comments

Comments
 (0)