Skip to content

Run ecs-go with the inherited terminal, so --turbo output is colored - #87

Merged
TomasVotruba merged 1 commit into
mainfrom
turbo-inherit-tty
Sep 29, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
turbo-inherit-tty

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

vendor/bin/ecs --turbo printed diffs without colors. ecs-go already colors its output, but only when stdout is a terminal - and passthru() pipes the child's stdout through PHP, so ecs-go saw a pipe and turned colors off (the progress bar on stderr was not piped, so that one worked).

Now ecs-go runs via proc_open() with ECS's own STDIN/STDOUT/STDERR, so it gets the real terminal: colored diff, correct width. Piped or CI output stays plain, same as before.

The command stays a string, as the array form of proc_open() needs PHP 7.4 and the release is downgraded to 7.2.

@TomasVotruba
TomasVotruba merged commit f518417 into main Sep 29, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the turbo-inherit-tty branch September 29, 2026 07:25
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.

1 participant