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 '''add color output to status, qseries, and diff-related commands |
19 '''add color output to status, qseries, and diff-related commands |
20 |
20 |
21 This extension modifies the status command to add color to its output to |
21 This extension modifies the status command to add color to its output |
22 reflect file status, the qseries command to add color to reflect patch status |
22 to reflect file status, the qseries command to add color to reflect |
23 (applied, unapplied, missing), and to diff-related commands to highlight |
23 patch status (applied, unapplied, missing), and to diff-related |
24 additions, removals, diff headers, and trailing whitespace. |
24 commands to highlight additions, removals, diff headers, and trailing |
25 |
25 whitespace. |
26 Other effects in addition to color, like bold and underlined text, are also |
26 |
27 available. Effects are rendered with the ECMA-48 SGR control function (aka |
27 Other effects in addition to color, like bold and underlined text, are |
28 ANSI escape codes). This module also provides the render_text function, |
28 also available. Effects are rendered with the ECMA-48 SGR control |
29 which can be used to add effects to any text. |
29 function (aka ANSI escape codes). This module also provides the |
|
30 render_text function, which can be used to add effects to any text. |
30 |
31 |
31 To enable this extension, add this to your .hgrc file: |
32 To enable this extension, add this to your .hgrc file: |
32 [extensions] |
33 [extensions] |
33 color = |
34 color = |
34 |
35 |