helpers\BaseConsole streamSupportsAnsiColors()

streamSupportsAnsiColors() public static method

Returns true if the stream supports colorization. ANSI colors are disabled if not supported by the stream.

  • windows without ansicon
  • not tty consoles
public static boolean streamSupportsAnsiColors ( $stream )
$stream mixed
return boolean

True if the stream supports ANSI colors, otherwise false.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.