diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:09:15 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-12-17 00:09:15 +0100 |
commit | 816192514e52c4f90756df9cc17a88b0f016afff (patch) | |
tree | 8d1eeff68bcbcd3a4b1108514324168acf56f4f9 | |
parent | 2fc60f6ae61e233405b059545ef1b7c45f210151 (diff) | |
download | bin-816192514e52c4f90756df9cc17a88b0f016afff.tar.xz |
todo: add colorization functions
-rwxr-xr-x[-rw-r--r--] | todo | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -55,6 +55,22 @@ def parse_args(args): return config +def color_bold(text): + color_string = '\x1b[1m{}\x1b[0m' + return color_string.format(text) + +def color_red(text): + color_string = '\x1b[38;2;250;050;050m{}\x1b[0m' + return color_string.format(text) + +def color_yellow(text): + color_string = '\x1b[38;2;250;150;050m{}\x1b[0m' + return color_string.format(text) + +def color_blue(text): + color_string = '\x1b[38;2;050;150;250m{}\x1b[0m' + return color_string.format(text) + def main(): arguments = docopt(__doc__, version='todo 0.0.1.alpha') config = parse_args(arguments) |