File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ You can install the component in 2 different ways:
2020* :doc: `Install it via Composer </components/using_components >` (``symfony/console `` on `Packagist `_);
2121* Use the official Git repository (https://github.com/symfony/Console).
2222
23- .. note ::
24-
25- Windows does not support ANSI colors by default so the Console component detects and
26- disables colors where Windows does not have support. However, if Windows is not
27- configured with an ANSI driver and your console commands invoke other scripts which
28- emit ANSI color sequences, they will be shown as raw escape characters.
29-
30- To enable ANSI color support for Windows, please install `ANSICON `_.
31-
3223Creating a basic Command
3324------------------------
3425
@@ -124,6 +115,14 @@ This prints::
124115Coloring the Output
125116~~~~~~~~~~~~~~~~~~~
126117
118+ .. note ::
119+
120+ By default, Windows command console doesn't support output coloring. The
121+ Console component disables output coloring for Windows systems, but if your
122+ commands invoke other scripts which emit color sequences, they will be
123+ wrongly displayed as raw escape characters. Install the free `ANSICON `_
124+ application to add coloring support to your Windows command console.
125+
127126Whenever you output text, you can surround the text with tags to color its
128127output. For example::
129128
You can’t perform that action at this time.
0 commit comments