There was an error while loading. Please reload this page.
1 parent 53ea948 commit 084476eCopy full SHA for 084476e
1 file changed
src/ProxyCommand.php
@@ -62,10 +62,14 @@ public function execute(InputInterface $input): int
62
$process->setTimeout(null);
63
$process->setWorkingDirectory($this->detector->getDirectory());
64
65
- try {
66
- $process->setTty(Process::isTtySupported());
67
- } catch (\RuntimeException) {
68
- // TTY not supported
+ // When running via DDEV, avoid TTY mode — ddev exec handles
+ // its own terminal and TTY causes stray escape sequences.
+ if (! $this->detector->isDdev()) {
+ try {
69
+ $process->setTty(Process::isTtySupported());
70
+ } catch (\RuntimeException) {
71
+ // TTY not supported
72
+ }
73
}
74
75
$process->run(function (string $type, string $line): void {
0 commit comments