comparison hgext/color.py @ 22771:d6274291fac1

color: update description of the extension The color extension long ago ceased to work only for the status and qseries commands.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 06 Oct 2014 08:16:40 -0400
parents 7ebf91426f6a
children b186b3ef4b54
comparison
equal deleted inserted replaced
22770:de9424647fe4 22771:d6274291fac1
1 # color.py color output for the status and qseries commands 1 # color.py color output for Mercurial commands
2 # 2 #
3 # Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com> 3 # Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com>
4 # 4 #
5 # This software may be used and distributed according to the terms of the 5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version. 6 # GNU General Public License version 2 or any later version.
7 7
8 '''colorize output from some commands 8 '''colorize output from some commands
9 9
10 This extension modifies the status and resolve commands to add color 10 The color extension colorizes output from several Mercurial commands.
11 to their output to reflect file status, the qseries command to add 11 For example, the diff command shows additions in green and deletions
12 color to reflect patch status (applied, unapplied, missing), and to 12 in red, while the status command shows modified files in magenta. Many
13 diff-related commands to highlight additions, removals, diff headers, 13 other commands have analogous colors. It is possible to customize
14 tabs, and trailing whitespace. 14 these colors.
15 15
16 Other effects in addition to color, like bold and underlined text, are 16 Other effects in addition to color, like bold and underlined text, are
17 also available. By default, the terminfo database is used to find the 17 also available. By default, the terminfo database is used to find the
18 terminal codes used to change color and effect. If terminfo is not 18 terminal codes used to change color and effect. If terminfo is not
19 available, then effects are rendered with the ECMA-48 SGR control 19 available, then effects are rendered with the ECMA-48 SGR control