diff --git a/fasttyper/interface.py b/fasttyper/interface.py index f3e9c99..18c0b76 100644 --- a/fasttyper/interface.py +++ b/fasttyper/interface.py @@ -6,9 +6,15 @@ class Interface: self.application = application self.components = components self.no_cursor = no_cursor + self.colors = True def init_colors(self): - assert curses.has_colors() + try: + assert curses.has_colors() + except AssertionError: + self.colors = False + return + curses.start_color() curses.use_default_colors() diff --git a/setup.cfg b/setup.cfg index 1c5b156..acc31ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.0.5 +current_version = 2.0.6 [wheel] universal = 1 diff --git a/setup.py b/setup.py index 4a16ca5..2dab2bb 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ with open("requirements.txt", "r", encoding="utf-8") as fh: setup( name="fasttyper", - version="2.0.5", + version="2.0.6", author="Piotr Domanski", author_email="pi.domanski@gmail.com", description="Minimalistic typing exercise",