From a8a71057bce9cf6a374cb1e50b6f5da8e6bede64 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 8 Jul 2015 00:42:57 +0300 Subject: [PATCH] Fix color --- slpkg/toolbar.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slpkg/toolbar.py b/slpkg/toolbar.py index 43a43a8d..775d85a6 100644 --- a/slpkg/toolbar.py +++ b/slpkg/toolbar.py @@ -25,6 +25,8 @@ import sys import time +from __metadata__ import MetaData as _meta_ + def status(sec): """Toolbar progressive status @@ -32,7 +34,8 @@ def status(sec): try: syms = ["\\", "|", "/", "-"] for sym in syms: - sys.stdout.write("\b{0}".format(sym)) + sys.stdout.write("\b{0}{1}{2}".format(_meta_.color["GREY"], sym, + _meta_.color["ENDC"])) sys.stdout.flush() time.sleep(float(sec)) except KeyboardInterrupt: