16 # with this program; if not, write to the Free Software Foundation, Inc., |
16 # with this program; if not, write to the Free Software Foundation, Inc., |
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
18 |
18 |
19 '''colorize output from some commands |
19 '''colorize output from some commands |
20 |
20 |
21 This extension modifies the status command to add color to its output |
21 This extension modifies the status command to add color to its output to |
22 to reflect file status, the qseries command to add color to reflect |
22 reflect file status, the qseries command to add color to reflect patch status |
23 patch status (applied, unapplied, missing), and to diff-related |
23 (applied, unapplied, missing), and to diff-related commands to highlight |
24 commands to highlight additions, removals, diff headers, and trailing |
24 additions, removals, diff headers, and trailing whitespace. |
25 whitespace. |
25 |
26 |
26 Other effects in addition to color, like bold and underlined text, are also |
27 Other effects in addition to color, like bold and underlined text, are |
27 available. Effects are rendered with the ECMA-48 SGR control function (aka |
28 also available. Effects are rendered with the ECMA-48 SGR control |
28 ANSI escape codes). This module also provides the render_text function, which |
29 function (aka ANSI escape codes). This module also provides the |
29 can be used to add effects to any text. |
30 render_text function, which can be used to add effects to any text. |
|
31 |
30 |
32 Default effects may be overridden from the .hgrc file: |
31 Default effects may be overridden from the .hgrc file: |
33 |
32 |
34 [color] |
33 [color] |
35 status.modified = blue bold underline red_background |
34 status.modified = blue bold underline red_background |