Skip to content

Commit

Permalink
Use default unicode blocks on Windows Terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
avylove committed Aug 13, 2020
1 parent e4f4260 commit 2a5d0e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions enlighten/_counter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Provides Counter and SubConter classes
"""

import os
import platform
import re
import sys
Expand All @@ -27,8 +28,8 @@

STATUS_FMT = u'{message}'

# Even with cp65001, Windows doesn't seem to support all unicode characters
if platform.system() == 'Windows': # pragma: no cover(Windows)
# Even with cp65001, Windows doesn't seem to support all unicode characters. Windows Terminal does
if platform.system() == 'Windows' and not os.environ.get('WT_SESSION', None): # pragma: no cover
SERIES_STD = u' ▌█'
else:
SERIES_STD = u' ▏▎▍▌▋▊▉█'
Expand Down

0 comments on commit 2a5d0e6

Please sign in to comment.