sources/interface.cpp

changeset 119
9eb47f1899be
parent 118
ae284bf1b5ff
child 120
32ba3ae4daf1
equal deleted inserted replaced
118:ae284bf1b5ff 119:9eb47f1899be
172 reset_title(); 172 reset_title();
173 173
174 if (::has_colors()) 174 if (::has_colors())
175 { 175 {
176 ::start_color(); 176 ::start_color();
177 bool hasDefaultColors = ::use_default_colors(); 177 bool hasDefaultColors = (::use_default_colors() == OK);
178 int defaultFg = (hasDefaultColors == OK) ? -1 : COLOR_WHITE; 178 int defaultFg = hasDefaultColors ? -1 : COLOR_WHITE;
179 int defaultBg = (hasDefaultColors == OK) ? -1 : COLOR_BLACK; 179 int defaultBg = hasDefaultColors ? -1 : COLOR_BLACK;
180 180
181 // Initialize color pairs 181 // Initialize color pairs
182 for (int i = 0; i < NUM_COLORS; ++i) 182 for (int i = 0; i < NUM_COLORS; ++i)
183 for (int j = 0; j < NUM_COLORS; ++j) 183 for (int j = 0; j < NUM_COLORS; ++j)
184 { 184 {

mercurial