Added note about (sometimes) invisible characters in the multi progre… · commit-0/python-progressbar@57de6b8 · GitHub
Skip to content

Commit 57de6b8

Browse files
committed
Added note about (sometimes) invisible characters in the multi progress bar
1 parent 0f151a5 commit 57de6b8

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

examples.py

Lines changed: 1 addition & 1 deletion

progressbar/widgets.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
from __future__ import absolute_import
23
from __future__ import division
34
from __future__ import print_function
@@ -811,7 +812,12 @@ def __call__(self, progress, data, width):
811812

812813

813814
class MultiProgressBar(MultiRangeBar):
814-
def __init__(self, name, markers=' ', **kwargs):
815+
def __init__(self,
816+
name,
817+
# NOTE: the markers are not whitespace even though some
818+
# terminals don't show the characters correctly!
819+
markers=' ',
820+
**kwargs):
815821
MultiRangeBar.__init__(self, name=name,
816822
markers=list(reversed(markers)), **kwargs)
817823

tests/test_multibar.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)