matimatik/fbless — pull request #18 by ashinkarov (2012-07-26 22:57:51+00:00)
Title: Default environment colors

В секции [default] значение 'none' больше не приводит к аварийному выходу, а устанавливает дефолтные цвета.

Message from the commit:

If foreground/background fields in [default] were
set to 'none', fbless crashed with TypeError. If
the fields were missing, then the colors were taken
from defaults.py. So, there were no chance to use
environment defaults. Now, 'none' in defaults is
converted to -1, which says to curses that it should
use defult values.

* main.py (MainWindow.init_color):
If configure file had 'none' value for
background or foreground fields, pass
constant -1 to the curses.