Added methods for adding custom names directly to items

This commit is contained in:
Shoghi Cervantes
2015-08-06 21:09:37 +02:00
parent 091d0b3ff9
commit 554bfb4855
5 changed files with 162 additions and 25 deletions

View File

@ -55,7 +55,7 @@ abstract class Terminal{
if(isset($opts["disable-ansi"])){
self::$formattingCodes = false;
}else{
self::$formattingCodes = ((Utils::getOS() !== "win" and getenv("TERM") != "" and (!function_exists("posix_ttyname") or posix_ttyname(STDOUT) !== false)) or isset($opts["enable-ansi"]));
self::$formattingCodes = ((Utils::getOS() !== "win" and getenv("TERM") != "" and (!function_exists("posix_ttyname") or !defined("STDOUT") or posix_ttyname(STDOUT) !== false)) or isset($opts["enable-ansi"]));
}
}