Skip to content

Commit 4e2142d

Browse files
committed
Added note about ProgressBar changes
1 parent 1ea6304 commit 4e2142d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

components/console/helpers/progressbar.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ you can also set the current progress by calling the
4646

4747
.. caution::
4848

49-
The progress bar only works if your platform supports ANSI codes; on other
50-
platforms, no output is generated.
49+
Prior to version 2.6, the progress bar only works if your platform
50+
supports ANSI codes; on other platforms, no output is generated.
51+
52+
.. versionadded:: 2.6
53+
If your platform doesn't support ANSI codes, updates to the progress
54+
bar are added as new lines. To prevent the output from being flooded,
55+
adjust the
56+
:method:`Symfony\\Component\\Console\\Helper\\ProgressBar::setRedrawFrequency`
57+
accordingly. By default, when using a ``max``, the redraw frequency
58+
is set to *10%* of your ``max``.
5159

5260
If you don't know the number of steps in advance, just omit the steps argument
5361
when creating the :class:`Symfony\\Component\\Console\\Helper\\ProgressBar`

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy