changeset 30176:9f41b66cffc0

color: add some documentation for custom terminfo codes
author Danek Duvall <danek.duvall@oracle.com>
date Sat, 15 Oct 2016 15:01:14 -0700
parents 8915c68f3eba
children 9626022feaa4
files hgext/color.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/color.py	Thu Oct 13 13:10:01 2016 -0700
+++ b/hgext/color.py	Sat Oct 15 15:01:14 2016 -0700
@@ -29,6 +29,15 @@
 Some may not be available for a given terminal type, and will be
 silently ignored.
 
+If the terminfo entry for your terminal is missing codes for an effect
+or has the wrong codes, you can add or override those codes in your
+configuration::
+
+  [color]
+  terminfo.dim = \E[2m
+
+where '\E' is substituted with an escape character.
+
 Labels
 ------