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 { |