From 835d4177d085389ff84a007803f8a7e198172594 Mon Sep 17 00:00:00 2001 From: Benajmyn Love Date: Thu, 27 Jul 2017 14:28:03 +1000 Subject: [PATCH] Added colurs test --- HTTPy.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/HTTPy.py b/HTTPy.py index 78b1abd..055206b 100755 --- a/HTTPy.py +++ b/HTTPy.py @@ -3,6 +3,17 @@ import re # YAY REVERSE ENGINEER... wait its just regex import readline #Made this work with linux magic, test +#Define Colours +class bcolors: + HEADER = '\033[95m' + OKBLUE = '\033[94m' + OKGREEN = '\033[92m' + WARNING = '\033[93m' + FAIL = '\033[91m' + ENDC = '\033[0m' + BOLD = '\033[1m' + UNDERLINE = '\033[4m' + #FIXME: Have any CNAMES returned do a lookup and print it after the record. inInput = "" @@ -13,7 +24,7 @@ whoOn = "W" phrases = ["ping", "whois", "quit", "clear", "help", "nameserver"] def printHelp(): - print "========================================================" + print bcolors.HEADER + "========================================================" print "= help - This screen =" print "= clear - Clears the screen =" print "= ping - Enables/Disables pinging the IP Address ="