Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca1885a

Browse files
committed
Tweaks
1 parent 1b63db6 commit ca1885a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

console.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,22 +584,19 @@ call ``setAutoExit(false)`` on it to get the command result in ``CommandTester``
584584

585585
When testing your commands, it could be useful to understand how your command
586586
reacts on different settings like the width and the height of the terminal.
587-
Thanks to the :class:`Symfony\\Component\\Console\\Terminal` class, you can
588-
have access to such information::
587+
You have access to such information thanks to the
588+
:class:`Symfony\\Component\\Console\\Terminal` class:
589589

590590
use Symfony\Component\Console\Terminal;
591591

592592
$terminal = new Terminal();
593593

594-
// access to number of lines available
594+
// gets the number of lines available
595595
$height = $terminal->getHeight();
596596

597-
// access to number of columns available
597+
// gets the number of columns available
598598
$width = $terminal->getWidth();
599599

600-
By default, the ``Terminal`` class uses the values of the
601-
``LINES`` and ``COLUMNS`` system environment variables.
602-
603600
Logging Command Errors
604601
----------------------
605602

0 commit comments

Comments
 (0)