Added colurs test
This commit is contained in:
parent
9eed51570d
commit
835d4177d0
13
HTTPy.py
13
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 ="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user