diff options
author | 2014-09-08 00:29:57 +0200 | |
---|---|---|
committer | 2014-09-14 11:02:23 +0200 | |
commit | 68d662e689cd42687341c550fb6ebb74e6968d21 (patch) | |
tree | 486cef41bd928b8db704894233b2cef94a6e346f /pyload/cli/printer.py | |
parent | save_join -> safe_join & save_path -> safe_filename (diff) | |
download | pyload-68d662e689cd42687341c550fb6ebb74e6968d21.tar.xz |
module -> pyload
Diffstat (limited to 'pyload/cli/printer.py')
-rw-r--r-- | pyload/cli/printer.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pyload/cli/printer.py b/pyload/cli/printer.py new file mode 100644 index 000000000..0b2f5a0e3 --- /dev/null +++ b/pyload/cli/printer.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +def blue(string): + return "\033[1;34m" + unicode(string) + "\033[0m" + +def green(string): + return "\033[1;32m" + unicode(string) + "\033[0m" + +def yellow(string): + return "\033[1;33m" + unicode(string) + "\033[0m" + +def red(string): + return "\033[1;31m" + unicode(string) + "\033[0m" + +def cyan(string): + return "\033[1;36m" + unicode(string) + "\033[0m" + +def mag(string): + return "\033[1;35m" + unicode(string) + "\033[0m" + +def white(string): + return "\033[1;37m" + unicode(string) + "\033[0m" + +def println(line, content): + print "\033[" + str(line) + ";0H\033[2K" + content |