Skip to content

[Console] Create consistent console screenshots/recordings #17271

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified _images/components/console/completion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/components/console/cursor.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/components/console/debug_formatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/components/console/process-helper-debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/components/console/process-helper-error-debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/components/console/process-helper-verbose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _images/components/console/progress.png
Binary file not shown.
Binary file modified _images/components/console/progressbar.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 48 additions & 12 deletions _images/sources/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
How to Create Symfony Diagrams
==============================
How to Create Symfony Images
============================

Creating the Diagram
--------------------
Creating Diagrams
-----------------

* Use [Dia][1] as the diagramming application;
* Use [PT Sans Narrow][2] as the only font in all diagrams (if possible, use
Expand All @@ -21,8 +21,7 @@ Creating the Diagram
In case of doubt, check the existing diagrams or ask to the
[Symfony Documentation Team][3].

Saving and Exporting the Diagram
--------------------------------
### Saving and Exporting the Diagram

* Save the original diagram in `*.dia` format in `_images/sources/<folder-name>`;
* Export the diagram to SVG format and save it in `_images/<folder-name>`.
Expand All @@ -33,8 +32,7 @@ that transforms text into vector shapes (resulting file is larger in size, but
it's truly portable because text is displayed the same even if you don't have
some fonts installed).

Including the Diagram in the Symfony Docs
-----------------------------------------
### Including the Diagram in the Symfony Docs

Use the following snippet to embed the diagram in the docs:

Expand All @@ -44,21 +42,59 @@ Use the following snippet to embed the diagram in the docs:
<object data="../_images/<folder-name>/<diagram-file-name>.svg" type="image/svg+xml"></object>
```

Reasoning
---------
### Reasoning

* Dia was chosen because it's one of the few applications which are free, open
source and compatible with Linux, macOS and Windows.
* Font, colors and line widths were chosen to be similar to the diagrams used
in the best tech books.

Troubleshooting
---------------
### Troubleshooting

* On some macOS systems, Dia cannot be executed as a regular application and
you must run the following console command instead:
`export DISPLAY=:0 && /Applications/Dia.app/Contents/Resources/bin/dia`

Creating Console Screenshots
----------------------------

* Use [Asciinema][4] to record the console session locally:

```
$ asciinema rec -c bash recording.cast
```
* Use `$ ` as the prompt in recordings. E.g. if you're using Bash, add the
following lines to your ``.bashrc``:

```
if [ "$ASCIINEMA_REC" = "1" ]; then
PS1="\e[37m$ \e[0m"
fi
```
* Save the generated asciicast in `_images/sources/<folder-name>`.

### Rendering the Recording

Rendering the recording can be a difficult task. The [documentation team][3]
is always ready to help you with this task (e.g. you can open a PR with
only the asciicast file).

* Use [agg][5] to generated a GIF file from the recording;
* Install the [JetBrains Mono][6] font;
* Use the ``_images/sources/ascii-render.sh`` file to call agg:

```
AGG_PATH=/path/to/agg ./_images/sources/ascii-render.sh recording.cast --cols 45 --rows 20
```

This utility configures a predefined theme;
* Always configure `--cols`` (width) and ``--rows`` (height), try to use as
low as possible numbers. Do not exceed 70 columns;
* Save the generated GIF file in `_images/<folder-name>`.

[1]: http://dia-installer.de/
[2]: https://fonts.google.com/specimen/PT+Sans+Narrow
[3]: https://symfony.com/doc/current/contributing/code/core_team.html
[4]: https://github.com/asciinema/asciinema
[5]: https://github.com/asciinema/agg
[6]: https://www.jetbrains.com/lp/mono/
24 changes: 24 additions & 0 deletions _images/sources/ascii-render.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env sh
case "$1" in
''|help|-h)
echo "ansi-render.sh RECORDING [options]"
echo ""
echo " RECORDING: path to the .cast file generated by asciinema"
echo " [options]: optional options to be passed to agg"
;;
*)
recording=$1
extra_options=
if [ $# -gt 1 ]; then
shift
extra_options=$@
fi

# optionally, use this green color: 1f4631
${AGG_PATH:-agg} \
--theme 18202a,f9fafb,f9fafb,ff7b72,7ee787,ffa657,79c0ff,d2a8ff,a5d6ff,f9fafb,8b949e,ff7b72,00c300,ffa657,79c0ff,d2a8ff,a5d6ff,f9fafb --line-height 1.6 \
--font-family 'JetBrains Mono' \
$extra_options \
$recording $(echo $recording | sed "s/cast/gif/")
;;
esac
37 changes: 37 additions & 0 deletions _images/sources/components/console/completion.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{"version": 2, "width": 76, "height": 30, "timestamp": 1663253713, "env": {"SHELL": "/usr/bin/fish", "TERM": "st-256color"}}
[0.00798, "o", "\u001b[?2004h\u001b[90m$ \u001b[0m"]
[0.614685, "o", "b"]
[0.776549, "o", "i"]
[0.86682, "o", "n"]
[1.092426, "o", "/"]
[1.332671, "o", "c"]
[1.55068, "o", "o"]
[1.630651, "o", "n"]
[1.784584, "o", "s"]
[1.873108, "o", "o"]
[2.074652, "o", "l"]
[2.180433, "o", "e"]
[2.260475, "o", " "]
[2.696628, "o", "\u0007"]
[2.947263, "o", "\r\nabout debug:event-dispatcher\r\nassets:install debug:router\r\ncache:clear help\r\ncache:pool:clear lint:container\r\ncache:pool:delete lint:yaml\r\ncache:pool:list list\r\ncache:pool:prune router:match\r\ncache:warmup secrets:decrypt-to-local\r\ncompletion secrets:encrypt-from-local\r\nconfig:dump-reference secrets:generate-keys\r\ndebug:autowiring secrets:list\r\ndebug:config secrets:remove\r\ndebug:container secrets:set\r\ndebug:dotenv \r\n\u001b[37m$ \u001b[0mbin/console "]
[3.614479, "o", "s"]
[3.802449, "o", "e"]
[4.205631, "o", "\u0007crets:"]
[4.520435, "o", "r"]
[4.598031, "o", "e"]
[5.026287, "o", "move "]
[5.47041, "o", "\u0007SOME_"]
[5.673941, "o", "\u0007"]
[6.024086, "o", "\r\nSOME_OTHER_SECRET SOME_SECRET \r\n\u001b[37m$ \u001b[0mbin/console secrets:remove SOME_"]
[6.770627, "o", "O"]
[7.14335, "o", "THER_SECRET "]
[7.724482, "o", "\r\n\u001b[?2004l\r"]
[7.776657, "o", "\r\n"]
[7.779108, "o", "\u001b[30;42m \u001b[39;49m\r\n\u001b[30;42m [OK] Secret \"SOME_OTHER_SECRET\" removed from \"config/secrets/dev/\". \u001b[39;49m\r\n\u001b[30;42m \u001b[39;49m\r\n\r\n"]
[7.782993, "o", "\u001b[?2004h\u001b[37m$ \u001b[0m"]
[9.214537, "o", "e"]
[9.522429, "o", "x"]
[9.690371, "o", "i"]
[9.85446, "o", "t"]
[10.292412, "o", "\r\n\u001b[?2004l\r"]
[10.292526, "o", "exit\r\n"]
49 changes: 49 additions & 0 deletions _images/sources/components/console/cursor.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{"version": 2, "width": 191, "height": 30, "timestamp": 1663251833, "env": {"SHELL": "/usr/bin/fish", "TERM": "st-256color"}}
[0.007941, "o", "\u001b[?2004h\u001b[90m$ \u001b[0m"]
[0.566363, "o", "c"]
[0.643353, "o", "l"]
[0.762325, "o", "e"]
[0.952363, "o", "a"]
[0.995878, "o", "r"]
[1.107784, "o", "\r\n\u001b[?2004l\r"]
[1.109766, "o", "\u001b[H\u001b[2J"]
[1.109946, "o", "\u001b[?2004h\u001b[30m$ \u001b[0m"]
[1.653461, "o", "p"]
[1.772323, "o", "h"]
[1.856444, "o", "p"]
[1.980339, "o", " "]
[2.15827, "o", "c"]
[2.273242, "o", "u"]
[2.402231, "o", "r"]
[2.563066, "o", "s"]
[2.760266, "o", "o"]
[2.900252, "o", "r"]
[3.020537, "o", "."]
[3.316404, "o", "p"]
[3.403213, "o", "h"]
[3.483391, "o", "p"]
[3.820273, "o", "\r\n\u001b[?2004l\r"]
[3.845697, "o", "\u001b[6;9H#"]
[4.045942, "o", "\u001b[8;9H#"]
[4.246327, "o", "\u001b[8;2H#####"]
[4.446737, "o", "\u001b[2;9H#######"]
[4.647128, "o", "\u001b[7;7H#"]
[4.84749, "o", "\u001b[3;9H#"]
[5.047857, "o", "\u001b[7;9H#"]
[5.248246, "o", "\u001b[4;9H#"]
[5.448622, "o", "\u001b[2;2H#####"]
[5.648999, "o", "\u001b[3;7H#"]
[5.849378, "o", "\u001b[5;9H#####"]
[6.049711, "o", "\u001b[3;1H#"]
[6.250118, "o", "\u001b[7;1H#"]
[6.45056, "o", "\u001b[5;2H#####"]
[6.650897, "o", "\u001b[4;1H#"]
[6.851281, "o", "\u001b[6;7H#"]
[7.051644, "o", "\u001b[9;1H"]
[7.058802, "o", "\u001b[?2004h\u001b[30m$ \u001b[0m"]
[7.657612, "o", "e"]
[7.846956, "o", "x"]
[7.949451, "o", "i"]
[8.0893, "o", "t"]
[8.201144, "o", "\r\n\u001b[?2004l\r"]
[8.201227, "o", "exit\r\n"]
57 changes: 57 additions & 0 deletions _images/sources/components/console/progress.cast
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{"version": 2, "width": 191, "height": 17, "timestamp": 1663423221, "env": {"SHELL": "/usr/bin/fish", "TERM": "st-256color"}}
[0.008171, "o", "\u001b[?2004h\u001b[90m$ \u001b[0m"]
[0.385858, "o", "p"]
[0.577979, "o", "h"]
[0.768282, "o", "p"]
[0.96433, "o", " "]
[1.133645, "o", "p"]
[1.262693, "o", "r"]
[1.385832, "o", "o"]
[1.476876, "o", "g"]
[1.652322, "o", "r"]
[1.722357, "o", "e"]
[1.935395, "o", "s"]
[2.083915, "o", "s"]
[2.200109, "o", "."]
[2.403686, "o", "p"]
[2.510201, "o", "h"]
[2.602756, "o", "p"]
[2.909974, "o", "\r\n\u001b[?2004l\r"]
[2.935647, "o", "\u001b[34m Starting the demo... fingers crossed \u001b[39m\r\n 0/15 \u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 0%\r\n  < 1 sec 4.0 MiB"]
[3.418022, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[3.419196, "o", "\u001b[34m Starting the demo... fingers crossed \u001b[39m\r\n 2/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 13%\r\n  < 1 sec 6.0 MiB"]
[3.66102, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G"]
[3.661071, "o", "\u001b[2K"]
[3.661731, "o", "\u001b[34m Starting the demo... fingers crossed \u001b[39m\r\n 3/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 20%\r\n  5 secs 6.0 MiB"]
[4.143554, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[4.14385, "o", "\u001b[34m Starting the demo... fingers crossed \u001b[39m\r\n 5/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 33%\r\n  3 secs 6.5 MiB"]
[4.385367, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[4.38612, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n 6/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 40%\r\n  3 secs 7.1 MiB"]
[4.868053, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[4.86852, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n 8/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 53%\r\n  4 secs 8.1 MiB"]
[5.110341, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[5.11133, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n 9/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 60%\r\n  3 secs 8.6 MiB"]
[5.593851, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G"]
[5.593924, "o", "\u001b[2K"]
[5.594818, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n11/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 73%\r\n  4 secs 9.6 MiB"]
[5.836301, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[5.836831, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n12/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m\u001b[41m \u001b[49m 80%\r\n  4 secs 10.1 MiB"]
[6.31877, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K\u001b[1A"]
[6.318814, "o", "\u001b[1G\u001b[2K"]
[6.319403, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n14/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[32;41m\u001b[39;49m\u001b[41m \u001b[49m 93%\r\n  3 secs 11.1 MiB"]
[6.561359, "o", "\u001b[1G\u001b[2K\u001b[1A"]
[6.561561, "o", "\u001b[1G\u001b[2K\u001b[1A\u001b[1G\u001b[2K"]
[6.562504, "o", "\u001b[34m Looks good to me... \u001b[39m\r\n15/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m 100%\r\n  4 secs 11.6 MiB"]
[6.563772, "o", "\u001b[1G"]
[6.563824, "o", "\u001b[2K\u001b[1A"]
[6.563875, "o", "\u001b[1G\u001b[2K"]
[6.563926, "o", "\u001b[1A\u001b[1G\u001b[2K"]
[6.564766, "o", "\u001b[34m Thanks bye! \u001b[39m\r\n15/15 \u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m\u001b[42m \u001b[49m 100%\r\n  4 secs 11.6 MiB"]
[6.564805, "o", "\r\n\r\n"]
[6.570516, "o", "\u001b[?2004h"]
[6.570537, "o", "\u001b[90m$ \u001b[0m"]
[8.441927, "o", "e"]
[8.646449, "o", "x"]
[8.76668, "o", "i"]
[8.897799, "o", "t"]
[9.091614, "o", "\r\n\u001b[?2004l\rexit\r\n"]
4 changes: 2 additions & 2 deletions components/console/helpers/debug_formatter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Debug Formatter Helper
The :class:`Symfony\\Component\\Console\\Helper\\DebugFormatterHelper` provides
functions to output debug information when running an external program, for
instance a process or HTTP request. For example, if you used it to output
the results of running ``ls -la`` on a UNIX system, it might output something
like this:
the results of running ``figlet symfony``, it might output something like
this:

.. image:: /_images/components/console/debug_formatter.png
:align: center
Expand Down