Removed unused \ncc\Utilities > Functions > isTtyMode()
This commit is contained in:
parent
32b455576d
commit
3f67344a60
1 changed files with 0 additions and 21 deletions
|
@ -531,27 +531,6 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Determines if the current process is running in TTY mode
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function isTtyMode(): bool
|
|
||||||
{
|
|
||||||
if(!is_null(RuntimeCache::get('posix_isatty')))
|
|
||||||
{
|
|
||||||
return RuntimeCache::get('posix_isatty');
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!function_exists('posix_isatty'))
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
RuntimeCache::set('posix_isatty', posix_isatty(STDOUT));
|
|
||||||
return (bool)RuntimeCache::get('posix_isatty');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleans an array by removing empty values
|
* Cleans an array by removing empty values
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue