Hello, Note: This is PocketMine-MP source code question. I tried to use cli_set_process_title() on my project (Not related to PocketMine), it didn't work with cygwin's MinTTY that PM uses, though it returned TRUE, it only worked on The Command Prompt. If I search in the PM code, I only find one cli_set_process_title() on the code, that outputs PocketMine-MP | (Version). Then how is the process title changing everytime TSL/Memory/Players etc change? Thanks for your help.
Confusing, If I use cli_get_process_title(), it returns the one I am trying to set, while I see it didn't change?!
cli_set_process_title won't change title of terminal window, it will name of the process and you'll see it in Task manager, I'll post a screenshot in a moment. The way PocketMine changes title of windows is by this code PHP: echo "\x1b]0;" . $this->getName() . " " . $this->getPocketMineVersion() . " | Online " . count($this->players) . "/" . $this->getMaxPlayers() . " | Memory " . $usage . " | U " . round($this->network->getUpload() / 1024, 2) . " D " . round($this->network->getDownload() / 1024, 2) . " kB/s | TPS " . $this->getTicksPerSecond() . " | Load " . $this->getTickUsage() . "%\x07"; https://github.com/PocketMine/PocketMine-MP/blob/master/src/pocketmine/Server.php#L2347-L2354 Here is the result of cli_set_process_title Test this out yourself Code: php -r 'echo "\x1b]0Hello World!\x07";'