Skip to content

Commit 277b1c7

Browse files
committed
minor #17146 [Console] Mention the support of 256-color terminals (javiereguiluz)
This PR was merged into the 6.2 branch. Discussion ---------- [Console] Mention the support of 256-color terminals Fixes #17047. Commits ------- 89f5a60 [Console] Mention the support of 256-color terminals
2 parents 4a07144 + 89f5a60 commit 277b1c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

console/coloring.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,13 @@ Any hex color is supported for foreground and background colors. Besides that, t
5252

5353
.. note::
5454

55-
If the terminal doesn't support true colors, the nearest named color is used.
56-
E.g. ``#c0392b`` is degraded to ``red`` or ``#f1c40f`` is degraded to ``yellow``.
55+
If the terminal doesn't support true colors, the given color is replaced by
56+
the nearest color depending on the terminal capabilities. E.g. ``#c0392b`` is
57+
degraded to ``#d75f5f`` in 256-color terminals and to ``red`` in 8-color terminals.
58+
59+
.. versionadded:: 6.2
60+
61+
The support of 256-color terminals was introduced in Symfony 6.2.
5762

5863
And available options are: ``bold``, ``underscore``, ``blink``, ``reverse``
5964
(enables the "reverse video" mode where the background and foreground colors

0 commit comments

Comments
 (0)