Skip to content

Terminal ​

abstract class · pocketmine\utils\Terminal · source

Properties ​

$COLOR_AQUA ​

php
public static string $COLOR_AQUA

$COLOR_BLACK ​

php
public static string $COLOR_BLACK

$COLOR_BLUE ​

php
public static string $COLOR_BLUE

$COLOR_DARK_AQUA ​

php
public static string $COLOR_DARK_AQUA

$COLOR_DARK_BLUE ​

php
public static string $COLOR_DARK_BLUE

$COLOR_DARK_GRAY ​

php
public static string $COLOR_DARK_GRAY

$COLOR_DARK_GREEN ​

php
public static string $COLOR_DARK_GREEN

$COLOR_DARK_RED ​

php
public static string $COLOR_DARK_RED

$COLOR_GOLD ​

php
public static string $COLOR_GOLD

$COLOR_GRAY ​

php
public static string $COLOR_GRAY

$COLOR_GREEN ​

php
public static string $COLOR_GREEN

$COLOR_LIGHT_PURPLE ​

php
public static string $COLOR_LIGHT_PURPLE

$COLOR_MATERIAL_AMETHYST ​

php
public static string $COLOR_MATERIAL_AMETHYST

$COLOR_MATERIAL_COPPER ​

php
public static string $COLOR_MATERIAL_COPPER

$COLOR_MATERIAL_DIAMOND ​

php
public static string $COLOR_MATERIAL_DIAMOND

$COLOR_MATERIAL_EMERALD ​

php
public static string $COLOR_MATERIAL_EMERALD

$COLOR_MATERIAL_GOLD ​

php
public static string $COLOR_MATERIAL_GOLD

$COLOR_MATERIAL_IRON ​

php
public static string $COLOR_MATERIAL_IRON

$COLOR_MATERIAL_LAPIS ​

php
public static string $COLOR_MATERIAL_LAPIS

$COLOR_MATERIAL_NETHERITE ​

php
public static string $COLOR_MATERIAL_NETHERITE

$COLOR_MATERIAL_QUARTZ ​

php
public static string $COLOR_MATERIAL_QUARTZ

$COLOR_MATERIAL_REDSTONE ​

php
public static string $COLOR_MATERIAL_REDSTONE

$COLOR_MATERIAL_RESIN ​

php
public static string $COLOR_MATERIAL_RESIN

$COLOR_MINECOIN_GOLD ​

php
public static string $COLOR_MINECOIN_GOLD

$COLOR_PURPLE ​

php
public static string $COLOR_PURPLE

$COLOR_RED ​

php
public static string $COLOR_RED

$COLOR_WHITE ​

php
public static string $COLOR_WHITE

$COLOR_YELLOW ​

php
public static string $COLOR_YELLOW

$FORMAT_BOLD ​

php
public static string $FORMAT_BOLD

$FORMAT_ITALIC ​

php
public static string $FORMAT_ITALIC

$FORMAT_OBFUSCATED ​

php
public static string $FORMAT_OBFUSCATED

$FORMAT_RESET ​

php
public static string $FORMAT_RESET

$FORMAT_STRIKETHROUGH ​

php
public static string $FORMAT_STRIKETHROUGH

$FORMAT_UNDERLINE ​

php
public static string $FORMAT_UNDERLINE

Methods ​

getEscapeCodes() protected ​

php
protected static function getEscapeCodes() : void

getFallbackEscapeCodes() protected ​

php
protected static function getFallbackEscapeCodes() : void

hasFormattingCodes() ​

php
public static function hasFormattingCodes() : bool

init() ​

php
public static function init(?bool $enableFormatting = null) : void

isInit() ​

php
public static function isInit() : bool

toANSI() ​

php
public static function toANSI(string $string) : string

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.

write() ​

php
public static function write(string $line) : void

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

writeLine() ​

php
public static function writeLine(string $line) : void

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

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.