Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 69ca0c5

Browse files
fixes colors on streams other than stdout
1 parent e7d5dad commit 69ca0c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Colors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public function isEnabled()
107107
*/
108108
public function ptln($line, $color, $channel = STDOUT)
109109
{
110-
$this->set($color);
110+
$this->set($color, $channel);
111111
fwrite($channel, rtrim($line) . "\n");
112-
$this->reset();
112+
$this->reset($channel);
113113
}
114114

115115
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /