1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

add a space after status indicators

This commit is contained in:
Mike Fährmann 2015-12-02 18:49:49 +01:00
parent b2401542eb
commit 810aa4e146
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -69,7 +69,7 @@ class TerminalPrinter(Printer):
self.width = shutil.get_terminal_size().columns - OFFSET
def start(self, path):
safeprint(self.shorten(" " + path), end="", flush=True)
safeprint(self.shorten(" " + path), end="", flush=True)
def skip(self, path):
safeprint(self.shorten(CHAR_SKIP + path))
@ -116,14 +116,14 @@ class ColorPrinter(TerminalPrinter):
if platform.system() == "Windows":
ANSI = os.environ.get("TERM") == "ANSI"
OFFSET = 1
CHAR_SKIP = "#"
CHAR_ERROR = "!"
CHAR_SUCCESS = "*"
CHAR_SKIP = "# "
CHAR_ERROR = "! "
CHAR_SUCCESS = "* "
CHAR_ELLIPSIES = "..."
else:
ANSI = True
OFFSET = 0
CHAR_SKIP = "#"
CHAR_ERROR = ""
CHAR_SUCCESS = ""
CHAR_SKIP = "# "
CHAR_ERROR = " "
CHAR_SUCCESS = " "
CHAR_ELLIPSIES = ""