summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-11-20 10:15:31 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-11-20 10:13:25 -0800
commit0edad17d6728df055c3b92bf89d5329f0afdcefd (patch)
tree2ed5c4c5a6baec52dfa1a7e2bab2ef8ae6d5399d /Documentation
parentMerge branch 'nd/gitignore-trailing-whitespace' into maint (diff)
downloadtgif-0edad17d6728df055c3b92bf89d5329f0afdcefd.tar.xz
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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/config.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 6ae4d90708..9678ab6aa8 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -825,6 +825,10 @@ accepted are `normal`, `black`, `red`, `green`, `yellow`, `blue`,
`blink` and `reverse`. The first color given is the foreground; the
second is the background. The position of the attribute, if any,
doesn't matter.
++
+Colors (foreground and background) may also be given as numbers between
+0 and 255; these use ANSI 256-color mode (but note that not all
+terminals may support this).
color.diff::
Whether to use ANSI escape sequences to add color to patches.