Patchwork color: add some documentation for custom terminfo codes

login
register
mail settings
Submitter Danek Duvall
Date Oct. 15, 2016, 10:08 p.m.
Message ID <42f5a2db9e7f9d66058a.1476569328@smelly>
Download mbox | patch
Permalink /patch/17090/
State Accepted
Headers show

Comments

Danek Duvall - Oct. 15, 2016, 10:08 p.m.
# HG changeset patch
# User Danek Duvall <danek.duvall@oracle.com>
# Date 1476568874 25200
#      Sat Oct 15 15:01:14 2016 -0700
# Node ID 42f5a2db9e7f9d66058a7d77bc8c0c263272a8de
# Parent  c59334b806a8f10c80c2ea196eba5f4b1b86b229
color: add some documentation for custom terminfo codes
Pierre-Yves David - Oct. 16, 2016, 9:08 a.m.
On 10/16/2016 12:08 AM, danek.duvall@oracle.com wrote:
> # HG changeset patch
> # User Danek Duvall <danek.duvall@oracle.com>
> # Date 1476568874 25200
> #      Sat Oct 15 15:01:14 2016 -0700
> # Node ID 42f5a2db9e7f9d66058a7d77bc8c0c263272a8de
> # Parent  c59334b806a8f10c80c2ea196eba5f4b1b86b229
> color: add some documentation for custom terminfo codes

Pushed, thanks.

Patch

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -29,6 +29,15 @@  ECMA-48 mode, the options are 'bold', 'i
 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
 ------