support for no color curses
This commit is contained in:
parent
270266b5c7
commit
8c00a8d8c9
3 changed files with 9 additions and 3 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[bumpversion]
|
||||
current_version = 2.0.5
|
||||
current_version = 2.0.6
|
||||
|
||||
[wheel]
|
||||
universal = 1
|
||||
|
|
2
setup.py
2
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",
|
||||
|
|
Loading…
Reference in a new issue