File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -422,10 +422,25 @@ absolute path of the executable PHP binary available on your server::
422
422
$phpBinaryPath = $phpBinaryFinder->find();
423
423
// $phpBinaryPath = '/usr/local/bin/php' (the result will be different on your computer)
424
424
425
+ Checking for TTY Support
426
+ ------------------------
427
+
428
+ Another utility provided by this component is a method called
429
+ :method: `Symfony\\ Component\\ Process\\ Process::isTtySupported ` which returns
430
+ whether `TTY `_ is supported on the current operating system::
431
+
432
+ use Symfony\Component\Process\Process;
433
+
434
+ $process = (new Process())->setTty(Process::isTtySupported());
435
+
436
+ .. versionadded :: 4.1
437
+ The ``isTtySupported() `` method was introduced in Symfony 4.1.
438
+
425
439
.. _`Symfony Issue#5759` : https://github.com/symfony/symfony/issues/5759
426
440
.. _`PHP Bug#39992` : https://bugs.php.net/bug.php?id=39992
427
441
.. _`exec` : https://en.wikipedia.org/wiki/Exec_(operating_system)
428
442
.. _`pid` : https://en.wikipedia.org/wiki/Process_identifier
429
443
.. _`PHP Documentation` : https://php.net/manual/en/pcntl.constants.php
430
444
.. _Packagist : https://packagist.org/packages/symfony/process
431
445
.. _`PHP streams` : http://www.php.net/manual/en/book.stream.php
446
+ .. _`TTY` : https://en.wikipedia.org/wiki/Tty_(unix)
You can’t perform that action at this time.
0 commit comments