From 69ca0c5bbe7327f8ba9fe4212273eb03bcac17a7 Mon Sep 17 00:00:00 2001 From: Dietrich Schultz Date: Thu, 3 Nov 2022 14:58:41 -0700 Subject: [PATCH] fixes colors on streams other than stdout --- src/Colors.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Colors.php b/src/Colors.php index ae25256..015e422 100644 --- a/src/Colors.php +++ b/src/Colors.php @@ -107,9 +107,9 @@ public function isEnabled() */ public function ptln($line, $color, $channel = STDOUT) { - $this->set($color); + $this->set($color, $channel); fwrite($channel, rtrim($line) . "\n"); - $this->reset(); + $this->reset($channel); } /**