Added colurs test

This commit is contained in:
Benjamyn Love 2017-07-27 14:28:03 +10:00
parent 9eed51570d
commit 835d4177d0

View File

@ -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 ="