diff --git a/e911_helper.py b/e911_helper.py index d9ec9b4..cbcbb3d 100644 --- a/e911_helper.py +++ b/e911_helper.py @@ -69,7 +69,10 @@ class Colors: kernel32 = __import__("ctypes").windll.kernel32 kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7) del kernel32 - +def show_colors(): + for i in dir(Colors): + if i[0:1] != "_" and i != "END": + print("{:>16} {}".format(i, getattr(Colors, i) + i + Colors.END)) # Show and confirm disclaimer disclaimer_accepted = False @@ -78,8 +81,8 @@ disclaimer_accepted = False def show_disclaimer(): print( f""" -{Colors.BOLD}{Colors.BLINK}{Colors.RED} -WARNING {Colors.END}{Colors.LIGHT_WHITE}- This script is provided as a {Colors.ITALIC}DEMO ONLY.{Colors.END}{Colors.LIGHT_WHITE} It is intended to illistrate how to use the Voice1 APIs. By using this script, you agree to the terms of use and acknowledge that you are responsible for any actions taken. +{Colors.BOLD} +{Colors.RED}{Colors.BLINK}WARNING {Colors.END}{Colors.LIGHT_WHITE}- This script is provided as a {Colors.ITALIC}DEMO ONLY.{Colors.END}{Colors.LIGHT_WHITE} It is intended to illistrate how to use the Voice1 APIs. By using this script, you agree to the terms of use and acknowledge that you are responsible for any actions taken. Neither VOICE1 nor VOICE1’s resellers, contractors, or associates shall be responsible for providing Services to the extent that the issue is caused by (a) Customer’s misuse, improper use, mis-configuration, alteration, or damage to the Software; (b) Customer’s use of the Software with any hardware or software not supplied or supported by VOICE1; (c) Customer’s failure to install an update to the Software if such update would have resolved the issue; or (d) uses in a manner not in accordance with the Agreement. VOICE1 shall have no responsibility for loss of or damage to Customer’s data or loss of business, regardless of the cause of any such loss or damage.