PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
Loading...
Searching...
No Matches
pocketmine\utils\Terminal Class Reference
+ Collaboration diagram for pocketmine\utils\Terminal:

Static Public Member Functions

static hasFormattingCodes ()
 
static init (?bool $enableFormatting=null)
 
static isInit ()
 
static toANSI (string $string)
 
static write (string $line)
 
static writeLine (string $line)
 

Static Public Attributes

static string $COLOR_AQUA = ""
 
static string $COLOR_BLACK = ""
 
static string $COLOR_BLUE = ""
 
static string $COLOR_DARK_AQUA = ""
 
static string $COLOR_DARK_BLUE = ""
 
static string $COLOR_DARK_GRAY = ""
 
static string $COLOR_DARK_GREEN = ""
 
static string $COLOR_DARK_RED = ""
 
static string $COLOR_GOLD = ""
 
static string $COLOR_GRAY = ""
 
static string $COLOR_GREEN = ""
 
static string $COLOR_LIGHT_PURPLE = ""
 
static string $COLOR_MINECOIN_GOLD = ""
 
static string $COLOR_PURPLE = ""
 
static string $COLOR_RED = ""
 
static string $COLOR_WHITE = ""
 
static string $COLOR_YELLOW = ""
 
static string $FORMAT_BOLD = ""
 
static string $FORMAT_ITALIC = ""
 
static string $FORMAT_OBFUSCATED = ""
 
static string $FORMAT_RESET = ""
 
static string $FORMAT_STRIKETHROUGH = ""
 
static string $FORMAT_UNDERLINE = ""
 

Static Protected Member Functions

static getEscapeCodes ()
 
static getFallbackEscapeCodes ()
 

Detailed Description

Definition at line 36 of file Terminal.php.

Member Function Documentation

◆ getEscapeCodes()

static pocketmine\utils\Terminal::getEscapeCodes ( )
staticprotected

Definition at line 116 of file Terminal.php.

◆ getFallbackEscapeCodes()

static pocketmine\utils\Terminal::getFallbackEscapeCodes ( )
staticprotected

Definition at line 86 of file Terminal.php.

◆ hasFormattingCodes()

static pocketmine\utils\Terminal::hasFormattingCodes ( )
static

Definition at line 65 of file Terminal.php.

◆ init()

static pocketmine\utils\Terminal::init ( ?bool $enableFormatting = null)
static

Definition at line 159 of file Terminal.php.

◆ isInit()

static pocketmine\utils\Terminal::isInit ( )
static

Definition at line 183 of file Terminal.php.

◆ toANSI()

static pocketmine\utils\Terminal::toANSI ( string $string)
static

Returns a string with colorized ANSI Escape codes for the current terminal Note that this is platform-dependent and might produce different results depending on the terminal type and/or OS.

Definition at line 191 of file Terminal.php.

◆ write()

static pocketmine\utils\Terminal::write ( string $line)
static

Emits a string containing Minecraft colour codes to the console formatted with native colours.

Definition at line 228 of file Terminal.php.

◆ writeLine()

static pocketmine\utils\Terminal::writeLine ( string $line)
static

Emits a string containing Minecraft colour codes to the console formatted with native colours, followed by a newline character.

Definition at line 236 of file Terminal.php.

Member Data Documentation

◆ $COLOR_AQUA

string pocketmine\utils\Terminal::$COLOR_AQUA = ""
static

Definition at line 56 of file Terminal.php.

◆ $COLOR_BLACK

string pocketmine\utils\Terminal::$COLOR_BLACK = ""
static

Definition at line 45 of file Terminal.php.

◆ $COLOR_BLUE

string pocketmine\utils\Terminal::$COLOR_BLUE = ""
static

Definition at line 54 of file Terminal.php.

◆ $COLOR_DARK_AQUA

string pocketmine\utils\Terminal::$COLOR_DARK_AQUA = ""
static

Definition at line 48 of file Terminal.php.

◆ $COLOR_DARK_BLUE

string pocketmine\utils\Terminal::$COLOR_DARK_BLUE = ""
static

Definition at line 46 of file Terminal.php.

◆ $COLOR_DARK_GRAY

string pocketmine\utils\Terminal::$COLOR_DARK_GRAY = ""
static

Definition at line 53 of file Terminal.php.

◆ $COLOR_DARK_GREEN

string pocketmine\utils\Terminal::$COLOR_DARK_GREEN = ""
static

Definition at line 47 of file Terminal.php.

◆ $COLOR_DARK_RED

string pocketmine\utils\Terminal::$COLOR_DARK_RED = ""
static

Definition at line 49 of file Terminal.php.

◆ $COLOR_GOLD

string pocketmine\utils\Terminal::$COLOR_GOLD = ""
static

Definition at line 51 of file Terminal.php.

◆ $COLOR_GRAY

string pocketmine\utils\Terminal::$COLOR_GRAY = ""
static

Definition at line 52 of file Terminal.php.

◆ $COLOR_GREEN

string pocketmine\utils\Terminal::$COLOR_GREEN = ""
static

Definition at line 55 of file Terminal.php.

◆ $COLOR_LIGHT_PURPLE

string pocketmine\utils\Terminal::$COLOR_LIGHT_PURPLE = ""
static

Definition at line 58 of file Terminal.php.

◆ $COLOR_MINECOIN_GOLD

string pocketmine\utils\Terminal::$COLOR_MINECOIN_GOLD = ""
static

Definition at line 61 of file Terminal.php.

◆ $COLOR_PURPLE

string pocketmine\utils\Terminal::$COLOR_PURPLE = ""
static

Definition at line 50 of file Terminal.php.

◆ $COLOR_RED

string pocketmine\utils\Terminal::$COLOR_RED = ""
static

Definition at line 57 of file Terminal.php.

◆ $COLOR_WHITE

string pocketmine\utils\Terminal::$COLOR_WHITE = ""
static

Definition at line 60 of file Terminal.php.

◆ $COLOR_YELLOW

string pocketmine\utils\Terminal::$COLOR_YELLOW = ""
static

Definition at line 59 of file Terminal.php.

◆ $FORMAT_BOLD

string pocketmine\utils\Terminal::$FORMAT_BOLD = ""
static

Definition at line 37 of file Terminal.php.

◆ $FORMAT_ITALIC

string pocketmine\utils\Terminal::$FORMAT_ITALIC = ""
static

Definition at line 39 of file Terminal.php.

◆ $FORMAT_OBFUSCATED

string pocketmine\utils\Terminal::$FORMAT_OBFUSCATED = ""
static

Definition at line 38 of file Terminal.php.

◆ $FORMAT_RESET

string pocketmine\utils\Terminal::$FORMAT_RESET = ""
static

Definition at line 43 of file Terminal.php.

◆ $FORMAT_STRIKETHROUGH

string pocketmine\utils\Terminal::$FORMAT_STRIKETHROUGH = ""
static

Definition at line 41 of file Terminal.php.

◆ $FORMAT_UNDERLINE

string pocketmine\utils\Terminal::$FORMAT_UNDERLINE = ""
static

Definition at line 40 of file Terminal.php.


The documentation for this class was generated from the following file: