psl icon indicating copy to clipboard operation
psl copied to clipboard

`Psl\Shell\execute` with TTY

Open bendavies opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Hi there,

I want to replicate this code with PSL, but it doesn't look like we have TTY support here:

use Symfony\Component\Process\Process;

$process = new Process(['whatever']);
$process->setTimeout(null);
$process->setTty(true);

$process->mustRun();

the whatever is interactive and require input from the user.

Describe the solution you'd like Being able to configure a TTY/PTY :)

bendavies avatar Nov 11 '21 13:11 bendavies

Shell\execute doesn't support input, it's more like a replacement for exec/shell_exe/system, than symfony/process, however, since now we have Async IO in PSL ( v2 branch ), it would be possible to introduce a new Process component, but it's not in my TODO list.

If someone else would pick this up, it would be great.

azjezz avatar Nov 11 '21 14:11 azjezz