aboutsummaryrefslogtreecommitdiffstats
path: root/epy.py
diff options
context:
space:
mode:
authorMario Domgoergen <mdom@taz.de>2020-10-09 13:32:14 +0200
committerMario Domgoergen <mdom@taz.de>2020-10-09 13:32:14 +0200
commitb516051515b9565fb1ad3073f0eeef21ff341bdd (patch)
tree31f80cd2247af3a3917ba89dedbae6e2a219eb9a /epy.py
parent15ffb68aa724e86e99c7f4408d85dd48c25cf6e6 (diff)
downloadepy-b516051515b9565fb1ad3073f0eeef21ff341bdd.tar.gz
Check if color is supported by terminal
Diffstat (limited to 'epy.py')
-rwxr-xr-xepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epy.py b/epy.py
index 4803612..b96776b 100755
--- a/epy.py
+++ b/epy.py
@@ -1717,8 +1717,8 @@ def reader(ebook, index, width, y, pctg, sect):
def preread(stdscr, file):
global COLORSUPPORT, SHOWPROGRESS, SCREEN
- curses.use_default_colors()
try:
+ curses.use_default_colors()
curses.init_pair(1, -1, -1)
curses.init_pair(2, CFG["DarkColorFG"], CFG["DarkColorBG"])
curses.init_pair(3, CFG["LightColorFG"], CFG["LightColorBG"])