mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Fix color
This commit is contained in:
parent
2b6d284c72
commit
a8a71057bc
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue