Skip to content

Commit

Permalink
Merge pull request #275 from jolicode/fix-section-output-windows
Browse files Browse the repository at this point in the history
Fix section output to work on Windows
  • Loading branch information
lyrixx authored Feb 9, 2024
2 parents 2fb17ec + 7f3c154 commit 7c108f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

* Set the process title according to the current application name and task name
* Ignore some low level env vars in runnable command showed in logs
* Fix section output to work on Windows

## 0.12.1 (2024-02-06)

Expand Down
2 changes: 1 addition & 1 deletion src/SectionOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(OutputInterface $output)
$this->mainOutput = null;
$this->sections = new \SplObjectStorage();

if ($output instanceof ConsoleOutput && posix_isatty(\STDOUT) && 'true' === getenv('CASTOR_USE_SECTION')) {
if ($output instanceof ConsoleOutput && 'true' === getenv('CASTOR_USE_SECTION') && stream_isatty(\STDOUT)) {
$this->mainOutput = $output;
$this->consoleOutput = $output->section();
}
Expand Down

0 comments on commit 7c108f2

Please sign in to comment.