def run(process, std="nothing"): print(c.bold("a")) print(c.bold(c.green("a"))) print(c.green("a")) print(c.bold(c.red("a"))) print(c.red("a")) print(c.bold(c.blue("a"))) print(c.blue("a")) print(c.bold(c.yellow("a"))) print(c.yellow("a")) return "a"
def __init__(self, typ, string): # creating the class variables self.type = typ self.string = string self.message = "" # creating the message string with the colors and symbols according if typ == "warning": self.message = colors.yellow("[!] " + str(self.string)) elif typ == "error": self.message = colors.red("[!] " + str(self.string)) elif typ == "process": self.message = colors.white("[*] " + str(self.string)) elif typ == "result": self.message = colors.green("[+] " + str(self.string)) elif typ == "output": self.message = colors.white(str(self.string))