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
2016-10-30 17:04:41
Comments
Leave a Comment

Please login to continue.