mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-02 08:13:10 +00:00
Terminal: use fallback escape codes if TERM env var is not set
tput requires a value for TERM, so it will generate errors if the var is not set, as it appears not to be in PhpStorm on macOS.
This commit is contained in:
parent
a8dca190c6
commit
aad9f5fb45
@ -166,8 +166,10 @@ abstract class Terminal{
|
|||||||
case Utils::OS_LINUX:
|
case Utils::OS_LINUX:
|
||||||
case Utils::OS_MACOS:
|
case Utils::OS_MACOS:
|
||||||
case Utils::OS_BSD:
|
case Utils::OS_BSD:
|
||||||
self::getEscapeCodes();
|
if(getenv('TERM') !== false){
|
||||||
return;
|
self::getEscapeCodes();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
case Utils::OS_WINDOWS:
|
case Utils::OS_WINDOWS:
|
||||||
case Utils::OS_ANDROID:
|
case Utils::OS_ANDROID:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user