Add monochrome option, chmod 664 when copying config.

This commit is contained in:
Michael Lazar
2016-04-12 15:56:09 -07:00
parent 95d37ecf55
commit b72b7965c1
6 changed files with 21 additions and 8 deletions

View File

@@ -62,7 +62,8 @@ def curses_session():
# Hide the blinking cursor
curses.curs_set(0)
Color.init()
# Assign the terminal's default (background) color to code -1
curses.use_default_colors()
yield stdscr
@@ -254,7 +255,6 @@ class LoadScreen(object):
class Color(object):
"""
Color attributes for curses.
"""
@@ -286,9 +286,6 @@ class Color(object):
curses color pairs can be accessed directly through class attributes.
"""
# Assign the terminal's default (background) color to code -1
curses.use_default_colors()
for index, (attr, code) in enumerate(cls._colors.items(), start=1):
curses.init_pair(index, code[0], code[1])
setattr(cls, attr, curses.color_pair(index))