2022-09-05 12:23:17 -05:00
|
|
|
#% extends "py-script.mk" %#
|
2022-09-05 17:44:39 -05:00
|
|
|
#% block name %#print_ansi#% endblock %#
|
2022-09-05 12:23:17 -05:00
|
|
|
#% block script %#
|
2022-09-05 17:44:39 -05:00
|
|
|
##- '$(ansi_py)' -##
|
2022-09-05 12:23:17 -05:00
|
|
|
|
2022-09-13 16:40:07 -05:00
|
|
|
codes_names = {getattr(ansi, attr): attr for attr in ansi.__dict__}
|
2022-09-05 12:23:17 -05:00
|
|
|
for code in sorted(codes_names.keys(), key=lambda item: (len(item), item)):
|
2022-09-16 12:47:21 -05:00
|
|
|
print(
|
|
|
|
"{:>20} $(HELP_SEP) {} $(HELP_SEP) {}".format(
|
|
|
|
codes_names[code], code + "******" + ansi.end, repr(code)
|
|
|
|
)
|
|
|
|
)
|
2022-09-05 12:23:17 -05:00
|
|
|
|
|
|
|
#% endblock %#
|