From 190456c13c29ea98fe84029a234040ecb6e443f5 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 21 Oct 2022 23:40:31 +0800 Subject: [PATCH] feat: colorful shell output --- kms.php | 2 ++ src/Check.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kms.php b/kms.php index b741dba..ab2dcd6 100755 --- a/kms.php +++ b/kms.php @@ -1,6 +1,8 @@ #!/usr/bin/env php8 "; - echo (vlmcsCheck($host, $port) ? 'available': 'connect failed') . PHP_EOL; + echo "KMS Server: \033[33m$host\033[0m\033[36m:$port\033[0m ->"; + echo (vlmcsCheck($host, $port) ? "\033[32m available\033[0m": "\033[31m connect failed\033[0m") . PHP_EOL; }