From b2727748ef551b37ea6859e8dbeb5d490d459f91 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Mon, 18 May 2020 00:07:38 -0400 Subject: [PATCH] Add some color to the logo --- jetforce/server.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jetforce/server.py b/jetforce/server.py index c95556f..d34086a 100644 --- a/jetforce/server.py +++ b/jetforce/server.py @@ -14,13 +14,21 @@ from .__version__ import __version__ from .protocol import GeminiProtocol from .tls import GeminiCertificateOptions, generate_ad_hoc_certificate +if sys.stderr.isatty(): + CYAN = "\033[36m\033[1m" + RESET = "\033[0m" +else: + CYAN = "" + RESET = "" + + ABOUT = fr""" -You are now riding on... +{CYAN}You are now riding on... _________ _____________ ______ /______ /___ __/_______________________ ___ _ /_ _ \ __/_ /_ _ __ \_ ___/ ___/ _ \ / /_/ / / __/ /_ _ __/ / /_/ / / / /__ / __/ -\____/ \___/\__/ /_/ \____//_/ \___/ \___/ +\____/ \___/\__/ /_/ \____//_/ \___/ \___/{RESET} An Experimental Gemini Server, v{__version__} https://github.com/michael-lazar/jetforce