Skip to content

[11.x] Add isTtySupported to Process facade#54604

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
Riley19280:tty-available
Feb 14, 2025
Merged

[11.x] Add isTtySupported to Process facade#54604
taylorotwell merged 3 commits into
laravel:11.xfrom
Riley19280:tty-available

Conversation

@Riley19280
Copy link
Copy Markdown
Contributor

I would like to conditionally turn on TTY for a process if it is supported like so,

Process::when(\Symfony\Component\Process\Process::isTtySupported(), 
    fn (PendingProcess $process) => $process->tty()
)

but currently have to reach for the symfony process class to do so. This exposes the symfony Process::isTtySupported to the Process facade.

@Riley19280 Riley19280 changed the title [11.x] Check if TTY is available for a Process [11.x] Add isTtySupported to Process facade Feb 13, 2025
@taylorotwell taylorotwell merged commit 82b0c2f into laravel:11.x Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants