module_test: add urgent support in --term
@@ -92,6 +92,9 @@ def module_test(module_class, config=None):
if "--term" in argv:
line = ""
for item in output:
+ if item.get("urgent"):
+ line += "\033[41m"
+ else:
color = item.get("color")
if color:
line += "\033[38;2;{};{};{}m".format(
